More filesys tests.
[pintos-anon] / grading / filesys / grow-sparse.c
index 618082802748a0aee1ad0a49bfd7d67fb5f93ce7..896b2facb5913d1ae0099fe5e4a5446ba660d867 100644 (file)
@@ -6,13 +6,12 @@
 const char test_name[] = "grow-sparse";
 static char buf[76543];
 
-int
-main (void) 
+void
+test_main (void) 
 {
   char zero = 0;
   int fd;
   
-  msg ("begin");
   check (create ("testfile", 0), "create \"testfile\"");
   check ((fd = open ("testfile")) > 1, "open \"testfile\"");
   msg ("seek \"testfile\"");
@@ -21,6 +20,4 @@ main (void)
   msg ("close \"testfile\"");
   close (fd);
   check_file ("testfile", buf, sizeof buf);
-  msg ("end");
-  return 0;
 }