Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / pt-write-code.c
diff --git a/src/tests/vm/pt-write-code.c b/src/tests/vm/pt-write-code.c
new file mode 100644 (file)
index 0000000..4c580b5
--- /dev/null
@@ -0,0 +1,9 @@
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+  *(int *) test_main = 0;
+  fail ("writing the code segment succeeded");
+}