aboutsummaryrefslogtreecommitdiffstats
path: root/test/root/whitelist-mnt.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/root/whitelist-mnt.exp')
-rwxr-xr-xtest/root/whitelist-mnt.exp19
1 files changed, 19 insertions, 0 deletions
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
79send -- "exit\r" 79send -- "exit\r"
80sleep 1 80sleep 1
81 81
82send -- "touch /srv/firejail-test-file\r"
83after 100
84send -- "firejail --whitelist=/srv/firejail-test-file --debug\r"
85expect {
86 timeout {puts "TESTING ERROR 0\n";exit}
87 "Child process initialized"
88}
89sleep 1
90
91send -- "find /srv | wc -l\r"
92expect {
93 timeout {puts "TESTING ERROR 1\n";exit}
94 "2"
95}
96after 100
97send -- "exit\r"
98sleep 1
99
100
82 101
83 102
84after 100 103after 100