diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-30 12:19:53 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-30 12:19:53 -0400 |
commit | 2bd593cbeb17f109f8f53c811671fa8166411421 (patch) | |
tree | e4e57c8380d95e970cc486fd60fed54dff870da0 /test/filters/seccomp-chmod-profile.exp | |
parent | added make test-filters (diff) | |
download | firejail-2bd593cbeb17f109f8f53c811671fa8166411421.tar.gz firejail-2bd593cbeb17f109f8f53c811671fa8166411421.tar.zst firejail-2bd593cbeb17f109f8f53c811671fa8166411421.zip |
make test-filters fixes
Diffstat (limited to 'test/filters/seccomp-chmod-profile.exp')
-rwxr-xr-x | test/filters/seccomp-chmod-profile.exp | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/test/filters/seccomp-chmod-profile.exp b/test/filters/seccomp-chmod-profile.exp index 9683fad90..e5d16f524 100755 --- a/test/filters/seccomp-chmod-profile.exp +++ b/test/filters/seccomp-chmod-profile.exp | |||
@@ -14,36 +14,38 @@ expect { | |||
14 | } | 14 | } |
15 | sleep 2 | 15 | sleep 2 |
16 | 16 | ||
17 | send -- "touch testfile;pwd\r" | 17 | send -- "cd ~; echo done\r" |
18 | expect { | 18 | expect { |
19 | timeout {puts "TESTING ERROR 1\n";exit} | 19 | timeout {puts "TESTING ERROR 1\n";exit} |
20 | "/root" {puts "running as root"} | 20 | "done" |
21 | "/home" | ||
22 | } | 21 | } |
23 | 22 | ||
24 | send -- "ls -l testfile;pwd\r" | 23 | send -- "touch testfile; echo done\r" |
25 | expect { | 24 | expect { |
26 | timeout {puts "TESTING ERROR 2\n";exit} | 25 | timeout {puts "TESTING ERROR 2\n";exit} |
27 | "testfile" | 26 | "done" |
28 | } | 27 | } |
28 | |||
29 | send -- "ls -l testfile; echo done\r" | ||
29 | expect { | 30 | expect { |
30 | timeout {puts "TESTING ERROR 3\n";exit} | 31 | timeout {puts "TESTING ERROR 3\n";exit} |
31 | "/root" {puts "running as root"} | 32 | "testfile" |
32 | "/home" | 33 | } |
34 | expect { | ||
35 | timeout {puts "TESTING ERROR 4\n";exit} | ||
36 | "done" | ||
33 | } | 37 | } |
34 | 38 | ||
35 | send -- "chmod +x testfile;pwd\r" | 39 | send -- "chmod +x testfile; echo done\r" |
36 | expect { | 40 | expect { |
37 | timeout {puts "TESTING ERROR 2\n";exit} | 41 | timeout {puts "TESTING ERROR 5\n";exit} |
38 | "Bad system call" | 42 | "Bad system call" |
39 | } | 43 | } |
40 | expect { | 44 | expect { |
41 | timeout {puts "TESTING ERROR 3\n";exit} | 45 | timeout {puts "TESTING ERROR 6\n";exit} |
42 | "/root" {puts "running as root"} | 46 | "done" |
43 | "/home" | ||
44 | } | 47 | } |
45 | 48 | ||
46 | |||
47 | send -- "exit\r" | 49 | send -- "exit\r" |
48 | sleep 1 | 50 | sleep 1 |
49 | puts "\n" | 51 | puts "\nall done\n" |