diff options
author | 2016-05-05 18:16:03 -0400 | |
---|---|---|
committer | 2016-05-05 18:16:03 -0400 | |
commit | f8ad9c20bbbc5018927598c23532e33851b74d60 (patch) | |
tree | fce89e52f67388c228039d5c9efdae8d069f2813 /test/filters | |
parent | Merge pull request #499 from reinerh/master (diff) | |
download | firejail-f8ad9c20bbbc5018927598c23532e33851b74d60.tar.gz firejail-f8ad9c20bbbc5018927598c23532e33851b74d60.tar.zst firejail-f8ad9c20bbbc5018927598c23532e33851b74d60.zip |
test fixes
Diffstat (limited to 'test/filters')
-rwxr-xr-x | test/filters/seccomp-dualfilter.exp | 21 |
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 | ||
6 | set timeout 10 | 6 | set timeout 1 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | 9 | ||
10 | send -- "./syscall_test\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING SKIP: 64-bit support missing\n";exit} | ||
13 | "Usage" | ||
14 | } | ||
15 | |||
16 | send -- "./syscall_test32\r" | ||
17 | expect { | ||
18 | timeout {puts "TESTING SKIP: 32-bit support missing\n";exit} | ||
19 | "Usage" | ||
20 | } | ||
21 | |||
22 | set timeout 10 | ||
10 | send -- "firejail ./syscall_test mount\r" | 23 | send -- "firejail ./syscall_test mount\r" |
11 | expect { | 24 | expect { |
12 | timeout {puts "TESTING ERROR 0\n";exit} | 25 | timeout {puts "TESTING ERROR 0\n";exit} |
@@ -18,7 +31,7 @@ expect { | |||
18 | } | 31 | } |
19 | expect { | 32 | expect { |
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 | } |
24 | sleep 1 | 37 | sleep 1 |
@@ -26,8 +39,6 @@ sleep 1 | |||
26 | send -- "firejail ./syscall_test32 mount\r" | 39 | send -- "firejail ./syscall_test32 mount\r" |
27 | expect { | 40 | expect { |
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 | } |
33 | expect { | 44 | expect { |
@@ -36,7 +47,7 @@ expect { | |||
36 | } | 47 | } |
37 | expect { | 48 | expect { |
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 | ||