Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / grading / filesys / dir-rm-cwd.c
diff --git a/grading/filesys/dir-rm-cwd.c b/grading/filesys/dir-rm-cwd.c
deleted file mode 100644 (file)
index f99983b..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <syscall.h>
-#include "fslib.h"
-
-const char test_name[] = "dir-rm-cwd";
-
-void
-test_main (void) 
-{
-  CHECK (mkdir ("a"), "mkdir \"a\"");
-  CHECK (chdir ("a"), "chdir \"a\"");
-  msg ("remove \"/a\" (must not crash)");
-  remove ("/a");
-  msg ("create \"b\" (must not crash)");
-  create ("b", 123);
-}