diff options
Diffstat (limited to 'test/filters/seccomp-errno.exp')
-rwxr-xr-x | test/filters/seccomp-errno.exp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/filters/seccomp-errno.exp b/test/filters/seccomp-errno.exp index eeb0824f2..458fccc4e 100755 --- a/test/filters/seccomp-errno.exp +++ b/test/filters/seccomp-errno.exp | |||
@@ -20,19 +20,23 @@ sleep 1 | |||
20 | send -- "firejail --seccomp=unlinkat:ENOENT --debug rm seccomp-test-file\r" | 20 | send -- "firejail --seccomp=unlinkat:ENOENT --debug rm seccomp-test-file\r" |
21 | expect { | 21 | expect { |
22 | timeout {puts "TESTING ERROR 1\n";exit} | 22 | timeout {puts "TESTING ERROR 1\n";exit} |
23 | "unlinkat 2 ENOENT" | 23 | "seccomp entries in /run/firejail/mnt/seccomp" |
24 | } | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 2\n";exit} | ||
27 | "ret ERRNO(2)" | ||
24 | } | 28 | } |
25 | sleep 1 | 29 | sleep 1 |
26 | 30 | ||
27 | send -- "firejail --seccomp=unlinkat:ENOENT,mkdir:ENOENT\r" | 31 | send -- "firejail --seccomp=unlinkat:ENOENT,mkdir:ENOENT\r" |
28 | expect { | 32 | expect { |
29 | timeout {puts "TESTING ERROR 2\n";exit} | 33 | timeout {puts "TESTING ERROR 3\n";exit} |
30 | "Child process initialized" | 34 | "Child process initialized" |
31 | } | 35 | } |
32 | sleep 1 | 36 | sleep 1 |
33 | send -- "rm seccomp-test-file\r" | 37 | send -- "rm seccomp-test-file\r" |
34 | expect { | 38 | expect { |
35 | timeout {puts "TESTING ERROR 3\n";exit} | 39 | timeout {puts "TESTING ERROR 4\n";exit} |
36 | "No such file or directory" | 40 | "No such file or directory" |
37 | } | 41 | } |
38 | after 100 | 42 | after 100 |
@@ -40,7 +44,7 @@ puts "\n" | |||
40 | 44 | ||
41 | send -- "mkdir seccomp-test-dir\r" | 45 | send -- "mkdir seccomp-test-dir\r" |
42 | expect { | 46 | expect { |
43 | timeout {puts "TESTING ERROR 4\n";exit} | 47 | timeout {puts "TESTING ERROR 5\n";exit} |
44 | "No such file or directory" | 48 | "No such file or directory" |
45 | } | 49 | } |
46 | after 100 | 50 | after 100 |