From 09bd0623dd8b07083f58df97ba1a035465968001 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 29 Nov 2016 18:01:29 -0500 Subject: testing --- test/root/whitelist-mnt.exp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/root') diff --git a/test/root/whitelist-mnt.exp b/test/root/whitelist-mnt.exp index 58ae4fffc..a21446afe 100755 --- a/test/root/whitelist-mnt.exp +++ b/test/root/whitelist-mnt.exp @@ -79,6 +79,25 @@ after 100 send -- "exit\r" sleep 1 +send -- "touch /srv/firejail-test-file\r" +after 100 +send -- "firejail --whitelist=/srv/firejail-test-file --debug\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "find /srv | wc -l\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "2" +} +after 100 +send -- "exit\r" +sleep 1 + + after 100 -- cgit v1.2.3-54-g00ecf