Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / userprog / open-boundary.c
diff --git a/src/tests/userprog/open-boundary.c b/src/tests/userprog/open-boundary.c
new file mode 100644 (file)
index 0000000..adf04d8
--- /dev/null
@@ -0,0 +1,11 @@
+#include <syscall.h>
+#include "tests/userprog/boundary.h"
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void) 
+{
+  CHECK (open (copy_string_across_boundary ("sample.txt")) > 1,
+         "open \"sample.txt\"");
+}