diff options
Diffstat (limited to 'src/tests/klaar/exec-corrupt.ck')
| -rw-r--r-- | src/tests/klaar/exec-corrupt.ck | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/tests/klaar/exec-corrupt.ck b/src/tests/klaar/exec-corrupt.ck new file mode 100644 index 0000000..d66eeee --- /dev/null +++ b/src/tests/klaar/exec-corrupt.ck @@ -0,0 +1,31 @@ +# -*- perl -*- +use strict; +use warnings; +use tests::tests; +check_expected ([<<'EOF', <<'EOF', <<'EOF', <<'EOF']); +(exec-corrupt) begin +load: corrupt-elf: error loading executable +(exec-corrupt) exec("corrupt-elf"): -1 +(exec-corrupt) end +exec-corrupt: exit(0) +EOF +(exec-corrupt) begin +(exec-corrupt) exec("corrupt-elf"): -1 +(exec-corrupt) end +exec-corrupt: exit(0) +EOF +(exec-corrupt) begin +load: corrupt-elf: error loading executable +corrupt-elf: exit(-1) +(exec-corrupt) exec("corrupt-elf"): -1 +(exec-corrupt) end +exec-corrupt: exit(0) +EOF +(exec-corrupt) begin +load: corrupt-elf: error loading executable +(exec-corrupt) exec("corrupt-elf"): -1 +corrupt-elf: exit(-1) +(exec-corrupt) end +exec-corrupt: exit(0) +EOF +pass; |
