aboutsummaryrefslogtreecommitdiffstats
path: root/test/option-trace.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/option-trace.exp')
-rwxr-xr-xtest/option-trace.exp14
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
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7send -- "firejail --trace firefox --name=testing\r" 7send -- "firejail --trace\r"
8expect { 8expect {
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}
12expect { 12expect {
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}
18expect { 16expect {
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}
23expect { 20expect {
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
29sleep 1 25sleep 1
30 26
31puts "\n" 27puts "all done\n"