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
/
wait-killed.ck
diff --git a/src/tests/userprog/wait-killed.ck
b/src/tests/userprog/wait-killed.ck
new file mode 100644
(file)
index 0000000..
6bc5c20
--- /dev/null
+++ b/
src/tests/userprog/wait-killed.ck
@@ -0,0
+1,12
@@
+# -*- perl -*-
+use strict;
+use warnings;
+use tests::tests;
+check_expected ([<<'EOF']);
+(wait-killed) begin
+(child-bad) begin
+child-bad: exit(-1)
+(wait-killed) wait(exec()) = -1
+(wait-killed) end
+wait-killed: exit(0)
+EOF