Add more tests.
[pintos-anon] / grading / userprog / write-stdin.c
diff --git a/grading/userprog/write-stdin.c b/grading/userprog/write-stdin.c
new file mode 100644 (file)
index 0000000..1c6862b
--- /dev/null
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void) 
+{
+  char buf = 123;
+  printf ("(write-stdin) begin\n");
+  write (0, &buf, 1);
+  printf ("(write-stdin) end\n");
+  return 0;
+}