diff options
Diffstat (limited to 'pintos-progos/tests/userprog/halt.ck')
| -rw-r--r-- | pintos-progos/tests/userprog/halt.ck | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pintos-progos/tests/userprog/halt.ck b/pintos-progos/tests/userprog/halt.ck new file mode 100644 index 0000000..1b701ed --- /dev/null +++ b/pintos-progos/tests/userprog/halt.ck | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | # -*- perl -*- | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use tests::tests; | ||
| 5 | |||
| 6 | our ($test); | ||
| 7 | my (@output) = read_text_file ("$test.output"); | ||
| 8 | |||
| 9 | common_checks ("run", @output); | ||
| 10 | |||
| 11 | fail "missing 'begin' message\n" | ||
| 12 | if !grep ($_ eq '(halt) begin', @output); | ||
| 13 | fail "found 'fail' message--halt didn't really halt\n" | ||
| 14 | if grep ($_ eq '(halt) fail', @output); | ||
| 15 | pass; | ||
