aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/klaar/exec-corrupt.ck
blob: d66eeeeed74df642130cbc641d58963429be082a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;