Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / vm / pt-write-code2.ck
diff --git a/src/tests/vm/pt-write-code2.ck b/src/tests/vm/pt-write-code2.ck
new file mode 100644 (file)
index 0000000..ac8ff2a
--- /dev/null
@@ -0,0 +1,9 @@
+# -*- perl -*-
+use strict;
+use warnings;
+use tests::tests;
+check_expected ([<<'EOF']);
+(pt-write-code2) begin
+(pt-write-code2) open "sample.txt"
+pt-write-code2: exit(-1)
+EOF