Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / child-inherit.c
diff --git a/src/tests/vm/child-inherit.c b/src/tests/vm/child-inherit.c
new file mode 100644 (file)
index 0000000..4310520
--- /dev/null
@@ -0,0 +1,12 @@
+#include <string.h>
+#include "tests/vm/sample.inc"
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+  memset ((char *) 0x54321000, 0, 4096);
+  fail ("child can modify parent's memory mappings");
+}
+