From 97853040fb6af73c2f73a98d7e93dae0e20bfc57 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 3 Mar 2017 12:29:47 -0500 Subject: testing --- test/environment/output.exp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/environment/output.exp') diff --git a/test/environment/output.exp b/test/environment/output.exp index 10c325832..d175ddae2 100755 --- a/test/environment/output.exp +++ b/test/environment/output.exp @@ -61,5 +61,27 @@ expect { } after 100 send -- "rm -f logfile*\r" + + +send -- "firejail --output=../logfile -- ./output.sh\r" +expect { + timeout {puts "TESTING ERROR 8\n";exit} + "invalid output file" +} +after 100 + +send -- "firejail --output=/etc -- ./output.sh\r" +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "invalid output file" +} +after 100 + +send -- "firejail --output=/etc/firejail/zoom.profile -- ./output.sh\r" +expect { + timeout {puts "TESTING ERROR 10\n";exit} + "the output file needs to be owned by the current user" +} + after 100 puts "\nall done\n" -- cgit v1.2.3-54-g00ecf