aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/allow-debuggers.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-08-22 08:59:00 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-08-22 08:59:00 -0400
commit2b76cea1106462268b975ee68480796ba900d37f (patch)
tree6e5f058f8cff1eede40d5aac393475e04480e4c1 /test/environment/allow-debuggers.exp
parentfixed whitelist description in man pages (diff)
downloadfirejail-2b76cea1106462268b975ee68480796ba900d37f.tar.gz
firejail-2b76cea1106462268b975ee68480796ba900d37f.tar.zst
firejail-2b76cea1106462268b975ee68480796ba900d37f.zip
--allow-debuggers
Diffstat (limited to 'test/environment/allow-debuggers.exp')
-rwxr-xr-xtest/environment/allow-debuggers.exp32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/environment/allow-debuggers.exp b/test/environment/allow-debuggers.exp
new file mode 100755
index 000000000..dde9c4cc1
--- /dev/null
+++ b/test/environment/allow-debuggers.exp
@@ -0,0 +1,32 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4cd /home
5spawn $env(SHELL)
6match_max 100000
7
8send -- "firejail --profile=/etc/firejail/firefox.profile --allow-debuggers strace ls\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13expect {
14 timeout {puts "TESTING ERROR 1\n";exit}
15 "exited with 0"
16}
17after 100
18
19send -- "firejail --allow-debuggers --profile=/etc/firejail/firefox.profile strace ls\r"
20expect {
21 timeout {puts "TESTING ERROR 2\n";exit}
22 "Child process initialized"
23}
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "exited with 0"
27}
28after 100
29
30
31puts "\nall done\n"
32