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