diff options
Diffstat (limited to 'test/environment/allow-debuggers.exp')
-rwxr-xr-x | test/environment/allow-debuggers.exp | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/test/environment/allow-debuggers.exp b/test/environment/allow-debuggers.exp index 359f94db1..f92ec5ddf 100755 --- a/test/environment/allow-debuggers.exp +++ b/test/environment/allow-debuggers.exp | |||
@@ -5,36 +5,27 @@ cd /home | |||
5 | spawn $env(SHELL) | 5 | spawn $env(SHELL) |
6 | match_max 100000 | 6 | match_max 100000 |
7 | 7 | ||
8 | send -- "firejail --profile=/etc/firejail/firefox.profile --allow-debuggers strace ls\r" | 8 | send -- "firejail --allow-debuggers\r" |
9 | expect { | 9 | expect { |
10 | timeout {puts "TESTING ERROR 0\n";exit} | 10 | timeout {puts "TESTING ERROR 0\n";exit} |
11 | "Child process initialized" { puts "\n"} | 11 | "Child process initialized" { puts "\n"} |
12 | "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit } | 12 | "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit } |
13 | } | 13 | } |
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 1\n";exit} | ||
16 | "ioctl" | ||
17 | } | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "exit_group" | ||
21 | } | ||
22 | after 100 | 14 | after 100 |
23 | 15 | ||
24 | send -- "firejail --allow-debuggers --profile=/etc/firejail/firefox.profile strace ls\r" | 16 | send -- "strace ls\r" |
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 3\n";exit} | ||
27 | "Child process initialized" | ||
28 | } | ||
29 | expect { | 17 | expect { |
30 | timeout {puts "TESTING ERROR 4\n";exit} | 18 | timeout {puts "TESTING ERROR 1\n";exit} |
31 | "ioctl" | 19 | "open" |
32 | } | 20 | } |
33 | expect { | 21 | expect { |
34 | timeout {puts "TESTING ERROR 5\n";exit} | 22 | timeout {puts "TESTING ERROR 2\n";exit} |
35 | "exit_group" | 23 | "exit_group" |
36 | } | 24 | } |
37 | after 100 | 25 | after 100 |
26 | send -- "exit\r" | ||
27 | sleep 1 | ||
28 | |||
38 | 29 | ||
39 | 30 | ||
40 | puts "\nall done\n" | 31 | puts "\nall done\n" |