Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / grading / filesys / dir-open.c
diff --git a/grading/filesys/dir-open.c b/grading/filesys/dir-open.c
deleted file mode 100644 (file)
index 37a400b..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <syscall.h>
-#include "fslib.h"
-
-const char test_name[] = "dir-open";
-
-void
-test_main (void) 
-{
-  int fd;
-  
-  CHECK (mkdir ("xyzzy"), "mkdir \"xyzzy\"");
-  msg ("open \"xyzzy\"");
-  fd = open ("xyzzy");
-  if (fd == -1) 
-    msg ("open returned -1 -- ok");
-  else 
-    {
-      int retval = write (fd, "foobar", 6);
-      CHECK (retval == -1, "write \"xyzzy\" (must return -1, actually %d)",
-             retval);
-    }
-}