aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 18:16:03 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 18:16:03 -0400
commitf8ad9c20bbbc5018927598c23532e33851b74d60 (patch)
treefce89e52f67388c228039d5c9efdae8d069f2813 /test/filters
parentMerge pull request #499 from reinerh/master (diff)
downloadfirejail-f8ad9c20bbbc5018927598c23532e33851b74d60.tar.gz
firejail-f8ad9c20bbbc5018927598c23532e33851b74d60.tar.zst
firejail-f8ad9c20bbbc5018927598c23532e33851b74d60.zip
test fixes
Diffstat (limited to 'test/filters')
-rwxr-xr-xtest/filters/seccomp-dualfilter.exp21
1 files changed, 16 insertions, 5 deletions
diff --git a/test/filters/seccomp-dualfilter.exp b/test/filters/seccomp-dualfilter.exp
index 7efc117da..c75063672 100755
--- a/test/filters/seccomp-dualfilter.exp
+++ b/test/filters/seccomp-dualfilter.exp
@@ -3,10 +3,23 @@
3# Copyright (C) 2014-2016 Firejail Authors 3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2 4# License GPL v2
5 5
6set timeout 10 6set timeout 1
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9 9
10send -- "./syscall_test\r"
11expect {
12 timeout {puts "TESTING SKIP: 64-bit support missing\n";exit}
13 "Usage"
14}
15
16send -- "./syscall_test32\r"
17expect {
18 timeout {puts "TESTING SKIP: 32-bit support missing\n";exit}
19 "Usage"
20}
21
22set timeout 10
10send -- "firejail ./syscall_test mount\r" 23send -- "firejail ./syscall_test mount\r"
11expect { 24expect {
12 timeout {puts "TESTING ERROR 0\n";exit} 25 timeout {puts "TESTING ERROR 0\n";exit}
@@ -18,7 +31,7 @@ expect {
18} 31}
19expect { 32expect {
20 timeout {puts "TESTING ERROR 2\n";exit} 33 timeout {puts "TESTING ERROR 2\n";exit}
21 "after mount" {puts "TESTING ERROR 2.1\n";exit} 34 "after mount" {puts "TESTING ERROR 3\n";exit}
22 "Parent is shutting down" 35 "Parent is shutting down"
23} 36}
24sleep 1 37sleep 1
@@ -26,8 +39,6 @@ sleep 1
26send -- "firejail ./syscall_test32 mount\r" 39send -- "firejail ./syscall_test32 mount\r"
27expect { 40expect {
28 timeout {puts "TESTING ERROR 4\n";exit} 41 timeout {puts "TESTING ERROR 4\n";exit}
29 "No such file or directory" {puts "\nTESTING SKIP 3: can't execute 32 bit binary\n"; exit}
30 "Parent is shutting down, bye" {puts "\nTESTING SKIP 3: can't execute 32 bit binary\n"; exit}
31 "Child process initialized" 42 "Child process initialized"
32} 43}
33expect { 44expect {
@@ -36,7 +47,7 @@ expect {
36} 47}
37expect { 48expect {
38 timeout {puts "TESTING ERROR 6\n";exit} 49 timeout {puts "TESTING ERROR 6\n";exit}
39 "after mount" {puts "TESTING ERROR 6.1\n";exit} 50 "after mount" {puts "TESTING ERROR 7\n";exit}
40 "Parent is shutting down" 51 "Parent is shutting down"
41} 52}
42 53