aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/caps.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/filters/caps.exp')
-rwxr-xr-xtest/filters/caps.exp12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/filters/caps.exp b/test/filters/caps.exp
index c29794ea3..29437beea 100755
--- a/test/filters/caps.exp
+++ b/test/filters/caps.exp
@@ -10,7 +10,7 @@ match_max 100000
10send -- "firejail --caps.keep=chown,fowner --noprofile\r" 10send -- "firejail --caps.keep=chown,fowner --noprofile\r"
11expect { 11expect {
12 timeout {puts "TESTING ERROR 1\n";exit} 12 timeout {puts "TESTING ERROR 1\n";exit}
13 "Child process initialized" 13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
14} 14}
15after 100 15after 100
16 16
@@ -29,7 +29,7 @@ sleep 1
29send -- "firejail --caps.drop=all --noprofile\r" 29send -- "firejail --caps.drop=all --noprofile\r"
30expect { 30expect {
31 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 4\n";exit}
32 "Child process initialized" 32 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
33} 33}
34after 100 34after 100
35 35
@@ -48,7 +48,7 @@ sleep 1
48send -- "firejail --caps.drop=chown,dac_override,dac_read_search,fowner --noprofile\r" 48send -- "firejail --caps.drop=chown,dac_override,dac_read_search,fowner --noprofile\r"
49expect { 49expect {
50 timeout {puts "TESTING ERROR 7\n";exit} 50 timeout {puts "TESTING ERROR 7\n";exit}
51 "Child process initialized" 51 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
52} 52}
53after 100 53after 100
54 54
@@ -81,7 +81,7 @@ expect {
81expect { 81expect {
82 timeout {puts "TESTING ERROR 13\n";exit} 82 timeout {puts "TESTING ERROR 13\n";exit}
83 "Drop CAP_" {puts "TESTING ERROR 14\n";exit} 83 "Drop CAP_" {puts "TESTING ERROR 14\n";exit}
84 "Child process initialized" 84 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
85} 85}
86after 100 86after 100
87send -- "exit\r" 87send -- "exit\r"
@@ -93,7 +93,7 @@ sleep 1
93#send -- "firejail --profile=caps2.profile\r" 93#send -- "firejail --profile=caps2.profile\r"
94#expect { 94#expect {
95# timeout {puts "TESTING ERROR 15\n";exit} 95# timeout {puts "TESTING ERROR 15\n";exit}
96# "Child process initialized" 96# -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
97#} 97#}
98#after 100 98#after 100
99# 99#
@@ -113,7 +113,7 @@ sleep 1
113send -- "firejail --profile=caps3.profile\r" 113send -- "firejail --profile=caps3.profile\r"
114expect { 114expect {
115 timeout {puts "TESTING ERROR 18\n";exit} 115 timeout {puts "TESTING ERROR 18\n";exit}
116 "Child process initialized" 116 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
117} 117}
118after 100 118after 100
119 119