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