aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/whitelist-double.exp
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@protonmail.com>2021-07-29 07:47:16 -0400
committerLibravatar startx2017 <vradu.startx@protonmail.com>2021-07-29 07:47:16 -0400
commitb4424d947838cc41fc82f1ba9a7c06b8a49f9bae (patch)
tree2ac1fd1d9f2611bd7a19cd78cc76478c2d111125 /test/fs/whitelist-double.exp
parentFixup: Fix Firefox 'Profile not found' - whitelist /run/user/xxx/firefox (diff)
downloadfirejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.gz
firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.tar.zst
firejail-b4424d947838cc41fc82f1ba9a7c06b8a49f9bae.zip
rework make test-fs
Diffstat (limited to 'test/fs/whitelist-double.exp')
-rwxr-xr-xtest/fs/whitelist-double.exp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/fs/whitelist-double.exp b/test/fs/whitelist-double.exp
index 5ce9d8ad7..e653517a6 100755
--- a/test/fs/whitelist-double.exp
+++ b/test/fs/whitelist-double.exp
@@ -7,17 +7,17 @@ set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "echo 123 > /tmp/firejal-deleteme\r" 10send -- "echo 123 > /tmp/_firejail_test_file\r"
11sleep 1 11sleep 1
12 12
13send -- "firejail --whitelist=/tmp/firejal-deleteme --whitelist=/tmp/firejal-deleteme\r" 13send -- "firejail --whitelist=/tmp/_firejail_test_file --whitelist=/tmp/_firejail_test_file\r"
14expect { 14expect {
15 timeout {puts "TESTING ERROR 0\n";exit} 15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized" 16 "Child process initialized"
17} 17}
18sleep 1 18sleep 1
19 19
20send -- "cat /tmp/firejal-deleteme\r" 20send -- "cat /tmp/_firejail_test_file\r"
21expect { 21expect {
22 timeout {puts "TESTING ERROR 1\n";exit} 22 timeout {puts "TESTING ERROR 1\n";exit}
23 "123" 23 "123"
@@ -26,13 +26,13 @@ expect {
26send -- "exit\r" 26send -- "exit\r"
27sleep 1 27sleep 1
28 28
29send -- "cat /tmp/firejal-deleteme\r" 29send -- "cat /tmp/_firejail_test_file\r"
30expect { 30expect {
31 timeout {puts "TESTING ERROR 2\n";exit} 31 timeout {puts "TESTING ERROR 2\n";exit}
32 "123" 32 "123"
33} 33}
34 34
35send -- "rm -v /tmp/firejal-deleteme\r" 35send -- "rm -v /tmp/_firejail_test_file\r"
36expect { 36expect {
37 timeout {puts "TESTING ERROR 3\n";exit} 37 timeout {puts "TESTING ERROR 3\n";exit}
38 "removed" 38 "removed"