4 const char test_name[] = "dir-rm-cwd-cd";
9 check (mkdir ("a"), "mkdir \"a\"");
10 check (chdir ("a"), "chdir \"a\"");
11 msg ("remove \"/a\" (must not crash)");
13 check (!chdir ("/a"), "chdir \"/a\" (remove succeeded so this must fail)");
15 check (chdir ("/a"), "chdir \"/a\" (remove failed so this must succeed)");