Add more tests.
[pintos-anon] / grading / userprog / join-killed.c
diff --git a/grading/userprog/join-killed.c b/grading/userprog/join-killed.c
new file mode 100644 (file)
index 0000000..6a8e6b4
--- /dev/null
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void) 
+{
+  printf ("(join-killed) begin\n");
+  printf ("(join-killed) join(exec()) = %d\n", join (exec ("child-bad")));
+  printf ("(join-killed) end\n");
+  return 0;
+}