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