Add more tests.
[pintos-anon] / grading / userprog / exec-missing.c
diff --git a/grading/userprog/exec-missing.c b/grading/userprog/exec-missing.c
new file mode 100644 (file)
index 0000000..5fcc3d8
--- /dev/null
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void) 
+{
+  printf ("(exec-missing) begin\n");
+  printf ("(exec-missing) exec(\"no-such-file\"): %d\n",
+          exec ("no-such-file"));
+  printf ("(exec-missing) end\n");
+  return 0;
+}