Add file system persistence tests:
[pintos-anon] / src / tests / filesys / extended / dir-rm-root.c
index d44b8806913b2a959fe457738f79c5c68058ece1..c47f1eb7b47f6c135c80291a1ec5ebee4e7fd52f 100644 (file)
@@ -1,3 +1,6 @@
+/* Try to remove the root directory.
+   This must fail. */
+
 #include <syscall.h>
 #include "tests/lib.h"
 #include "tests/main.h"
@@ -5,6 +8,6 @@
 void
 test_main (void) 
 {
-  CHECK (!remove ("/"), "remove \"/\" (must return false)");
+  CHECK (!remove ("/"), "remove \"/\" (must fail)");
   CHECK (create ("/a", 243), "create \"/a\"");
 }