Make the default simulator qemu for project 2...4,
[pintos-anon] / src / tests / filesys / extended / dir-mk-vine.c
index e873238f4ddb93664682342dcf57382e70d5d3d6..444727a0ca58a074456fd89c045332fc7529e608 100644 (file)
@@ -1,3 +1,8 @@
+/* Creates a "vine" of directories /0/1/2/3/4/5/6/7/8/9
+   and changes directory into each of them,
+   then creates a test file in the bottommost
+   and verifies that it can be opened by absolute name. */
+
 #include <syscall.h>
 #include "tests/lib.h"
 #include "tests/main.h"
@@ -5,7 +10,7 @@
 void
 test_main (void) 
 {
-  const char *filename = "/0/1/2/3/4/5/6/7/8/9/test";
+  const char *file_name = "/0/1/2/3/4/5/6/7/8/9/test";
   char dir[2];
   
   dir[1] = '\0';
@@ -16,6 +21,6 @@ test_main (void)
     }
   CHECK (create ("test", 512), "create \"test\"");
   CHECK (chdir ("/"), "chdir \"/\"");
-  CHECK (open (filename) > 1, "open \"%s\"", filename);
+  CHECK (open (file_name) > 1, "open \"%s\"", file_name);
 }