projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make tests public. Rewrite most tests. Add tests.
[pintos-anon]
/
src
/
tests
/
userprog
/
child-bad.c
diff --git a/src/tests/userprog/child-bad.c
b/src/tests/userprog/child-bad.c
new file mode 100644
(file)
index 0000000..
70cfc6a
--- /dev/null
+++ b/
src/tests/userprog/child-bad.c
@@ -0,0
+1,9
@@
+#include "tests/lib.h"
+#include "tests/main.h"
+
+void
+test_main (void)
+{
+ asm volatile ("mov %esp, 0x20101234; int 0x30");
+ fail ("should have exited with -1");
+}