Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / pt-write-code-2.c
1 #include "tests/lib.h"
2 #include "tests/main.h"
3
4 void
5 test_main (void)
6 {
7   int handle;
8
9   CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
10   read (handle, (void *) test_main, 1);
11   fail ("survived reading data into code segment");
12 }