aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-chmod-profile.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 12:19:53 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-30 12:19:53 -0400
commit2bd593cbeb17f109f8f53c811671fa8166411421 (patch)
treee4e57c8380d95e970cc486fd60fed54dff870da0 /test/filters/seccomp-chmod-profile.exp
parentadded make test-filters (diff)
downloadfirejail-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-xtest/filters/seccomp-chmod-profile.exp30
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}
15sleep 2 15sleep 2
16 16
17send -- "touch testfile;pwd\r" 17send -- "cd ~; echo done\r"
18expect { 18expect {
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
24send -- "ls -l testfile;pwd\r" 23send -- "touch testfile; echo done\r"
25expect { 24expect {
26 timeout {puts "TESTING ERROR 2\n";exit} 25 timeout {puts "TESTING ERROR 2\n";exit}
27 "testfile" 26 "done"
28} 27}
28
29send -- "ls -l testfile; echo done\r"
29expect { 30expect {
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}
34expect {
35 timeout {puts "TESTING ERROR 4\n";exit}
36 "done"
33} 37}
34 38
35send -- "chmod +x testfile;pwd\r" 39send -- "chmod +x testfile; echo done\r"
36expect { 40expect {
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}
40expect { 44expect {
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
47send -- "exit\r" 49send -- "exit\r"
48sleep 1 50sleep 1
49puts "\n" 51puts "\nall done\n"