Initial file system tests.
[pintos-anon] / grading / filesys / create.inc
diff --git a/grading/filesys/create.inc b/grading/filesys/create.inc
new file mode 100644 (file)
index 0000000..d378fe3
--- /dev/null
@@ -0,0 +1,17 @@
+/* -*- c -*- */
+
+#include <stdio.h>
+#include <syscall.h>
+#include "fslib.h"
+
+static char buf[TEST_SIZE];
+
+int
+main (void) 
+{
+  msg ("begin");
+  check (create ("testfile", TEST_SIZE), "create testfile");
+  check_file ("testfile", buf, TEST_SIZE);
+  msg ("end");
+  return 0;
+}