From e19a3320081c91fdf05895d87b42e60bcf5e2408 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 13 Apr 2018 11:15:48 -0400 Subject: testing --- test/environment/allow-debuggers.exp | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) (limited to 'test/environment/allow-debuggers.exp') 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 spawn $env(SHELL) match_max 100000 -send -- "firejail --profile=/etc/firejail/firefox.profile --allow-debuggers strace ls\r" +send -- "firejail --allow-debuggers\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "Child process initialized" { puts "\n"} "is disabled on Linux kernels prior to 4.8" { puts "TESTING SKIP: kernel too old\n"; exit } } -expect { - timeout {puts "TESTING ERROR 1\n";exit} - "ioctl" -} -expect { - timeout {puts "TESTING ERROR 2\n";exit} - "exit_group" -} after 100 -send -- "firejail --allow-debuggers --profile=/etc/firejail/firefox.profile strace ls\r" -expect { - timeout {puts "TESTING ERROR 3\n";exit} - "Child process initialized" -} +send -- "strace ls\r" expect { - timeout {puts "TESTING ERROR 4\n";exit} - "ioctl" + timeout {puts "TESTING ERROR 1\n";exit} + "open" } expect { - timeout {puts "TESTING ERROR 5\n";exit} + timeout {puts "TESTING ERROR 2\n";exit} "exit_group" } after 100 +send -- "exit\r" +sleep 1 + puts "\nall done\n" -- cgit v1.2.3-70-g09d2