aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-05-25 19:08:11 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-05-25 20:17:39 +0200
commit4d638f132445224a9b3804ca838f9438702a06d2 (patch)
treecb14d516542f8e564801fe64fd14a64ad4db1c8d /test
parenttests: notify about end of test (diff)
downloadfirejail-4d638f132445224a9b3804ca838f9438702a06d2.tar.gz
firejail-4d638f132445224a9b3804ca838f9438702a06d2.tar.zst
firejail-4d638f132445224a9b3804ca838f9438702a06d2.zip
tests: there are two files (including postexec)
Diffstat (limited to 'test')
-rwxr-xr-xtest/filters/seccomp-run-files.exp10
-rwxr-xr-xtest/utils/dns-print.exp2
2 files changed, 6 insertions, 6 deletions
diff --git a/test/filters/seccomp-run-files.exp b/test/filters/seccomp-run-files.exp
index a72b9aef7..7c436b664 100755
--- a/test/filters/seccomp-run-files.exp
+++ b/test/filters/seccomp-run-files.exp
@@ -21,7 +21,7 @@ expect {
21 "/run/firejail/mnt/seccomp.protocol seccomp filter" 21 "/run/firejail/mnt/seccomp.protocol seccomp filter"
22} 22}
23after 100 23after 100
24send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" 24send -- "ls -l /run/firejail/mnt | grep -c seccomp\r"
25expect { 25expect {
26 timeout {puts "TESTING ERROR 3\n";exit} 26 timeout {puts "TESTING ERROR 3\n";exit}
27 "4" 27 "4"
@@ -38,10 +38,10 @@ expect {
38 "/run/firejail/mnt/seccomp.protocol seccomp filter" 38 "/run/firejail/mnt/seccomp.protocol seccomp filter"
39} 39}
40after 100 40after 100
41send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" 41send -- "ls -l /run/firejail/mnt | grep -c seccomp\r"
42expect { 42expect {
43 timeout {puts "TESTING ERROR 8\n";exit} 43 timeout {puts "TESTING ERROR 8\n";exit}
44 "1" 44 "2"
45} 45}
46send -- "exit\r" 46send -- "exit\r"
47sleep 1 47sleep 1
@@ -61,7 +61,7 @@ expect {
61 "monitoring" 61 "monitoring"
62} 62}
63after 100 63after 100
64send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" 64send -- "ls -l /run/firejail/mnt | grep -c seccomp\r"
65expect { 65expect {
66 timeout {puts "TESTING ERROR 13\n";exit} 66 timeout {puts "TESTING ERROR 13\n";exit}
67 "3" 67 "3"
@@ -87,7 +87,7 @@ expect {
87 "/run/firejail/mnt/seccomp.protocol seccomp filter" 87 "/run/firejail/mnt/seccomp.protocol seccomp filter"
88} 88}
89after 100 89after 100
90send -- "ls -l /run/firejail/mnt | grep seccomp | wc -l\r" 90send -- "ls -l /run/firejail/mnt | grep -c seccomp\r"
91expect { 91expect {
92 timeout {puts "TESTING ERROR 18\n";exit} 92 timeout {puts "TESTING ERROR 18\n";exit}
93 "5" 93 "5"
diff --git a/test/utils/dns-print.exp b/test/utils/dns-print.exp
index a0fbaa12f..bed7df58d 100755
--- a/test/utils/dns-print.exp
+++ b/test/utils/dns-print.exp
@@ -21,7 +21,7 @@ expect {
21 "nameserver 1.2.3.4" 21 "nameserver 1.2.3.4"
22} 22}
23expect { 23expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 24 timeout {puts "TESTING ERROR 2\n";exit}
25 "nameserver ::2" 25 "nameserver ::2"
26} 26}
27after 100 27after 100