diff options
Diffstat (limited to 'test/option-trace.exp')
-rwxr-xr-x | test/option-trace.exp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/test/option-trace.exp b/test/option-trace.exp index b8f723fb8..1d97df9b3 100755 --- a/test/option-trace.exp +++ b/test/option-trace.exp | |||
@@ -4,28 +4,24 @@ set timeout 10 | |||
4 | spawn $env(SHELL) | 4 | spawn $env(SHELL) |
5 | match_max 100000 | 5 | match_max 100000 |
6 | 6 | ||
7 | send -- "firejail --trace firefox --name=testing\r" | 7 | send -- "firejail --trace\r" |
8 | expect { | 8 | expect { |
9 | timeout {puts "TESTING ERROR 0\n";exit} | 9 | timeout {puts "TESTING ERROR 0\n";exit} |
10 | "Child process initialized" | 10 | "Child process initialized" |
11 | } | 11 | } |
12 | expect { | 12 | expect { |
13 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
14 | "command not found" {puts "\nTESTING: not tested, firefox not found\n"; exit} | 14 | "1:bash:open /dev/tty" |
15 | "1:firefox:open" {puts "\n"} | ||
16 | "1:iceweasel:open" | ||
17 | } | 15 | } |
18 | expect { | 16 | expect { |
19 | timeout {puts "TESTING ERROR 2\n";exit} | 17 | timeout {puts "TESTING ERROR 2\n";exit} |
20 | "1:firefox:access" {puts "\n"} | 18 | "1:bash:fopen /etc/passwd" |
21 | "1:iceweasel:access" | ||
22 | } | 19 | } |
23 | expect { | 20 | expect { |
24 | timeout {puts "TESTING ERROR 3\n";exit} | 21 | timeout {puts "TESTING ERROR 3\n";exit} |
25 | "1:firefox:connect" {puts "\n"} | 22 | "1:bash:access /etc/terminfo/x/xterm" |
26 | "1:iceweasel:connect" | ||
27 | } | 23 | } |
28 | 24 | ||
29 | sleep 1 | 25 | sleep 1 |
30 | 26 | ||
31 | puts "\n" | 27 | puts "all done\n" |