From 2b76cea1106462268b975ee68480796ba900d37f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 22 Aug 2016 08:59:00 -0400 Subject: --allow-debuggers --- test/environment/allow-debuggers.exp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 test/environment/allow-debuggers.exp (limited to 'test/environment/allow-debuggers.exp') 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 @@ +#!/usr/bin/expect -f + +set timeout 10 +cd /home +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --profile=/etc/firejail/firefox.profile --allow-debuggers strace ls\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "exited with 0" +} +after 100 + +send -- "firejail --allow-debuggers --profile=/etc/firejail/firefox.profile strace ls\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "Child process initialized" +} +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "exited with 0" +} +after 100 + + +puts "\nall done\n" + -- cgit v1.2.3-54-g00ecf