summaryrefslogtreecommitdiffstats
path: root/pintos-progos/tests/userprog/wait-killed.ck
diff options
context:
space:
mode:
Diffstat (limited to 'pintos-progos/tests/userprog/wait-killed.ck')
-rw-r--r--pintos-progos/tests/userprog/wait-killed.ck13
1 files changed, 13 insertions, 0 deletions
diff --git a/pintos-progos/tests/userprog/wait-killed.ck b/pintos-progos/tests/userprog/wait-killed.ck
new file mode 100644
index 0000000..5df0e9c
--- /dev/null
+++ b/pintos-progos/tests/userprog/wait-killed.ck
@@ -0,0 +1,13 @@
1# -*- perl -*-
2use strict;
3use warnings;
4use tests::tests;
5check_expected ([<<'EOF']);
6(wait-killed) begin
7(child-bad) begin
8child-bad: exit(-1)
9(wait-killed) wait(exec()) = -1
10(wait-killed) end
11wait-killed: exit(0)
12EOF
13pass;