aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/seccomp-empty.exp
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2022-02-09 18:04:36 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2022-02-09 18:30:45 +0100
commit7578e86ef8ddb78da44d426b94def77366627e0e (patch)
treee752d23f1b61a50fb7b7372d6799fe9ef4d111e4 /test/filters/seccomp-empty.exp
parentMerge pull request #4915 from kmk3/keepassx-restore-nou2f (diff)
downloadfirejail-7578e86ef8ddb78da44d426b94def77366627e0e.tar.gz
firejail-7578e86ef8ddb78da44d426b94def77366627e0e.tar.zst
firejail-7578e86ef8ddb78da44d426b94def77366627e0e.zip
testing: fix expect matching of numbers
The sandbox timestamp should not be available for matching when output is already expected from the next command (this is only a problem if numeric output if expected from the first command in the sandbox). A possible alternative would be to flush the expect output buffer with 'expect "*"' after the sandbox is up.
Diffstat (limited to 'test/filters/seccomp-empty.exp')
-rwxr-xr-xtest/filters/seccomp-empty.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/filters/seccomp-empty.exp b/test/filters/seccomp-empty.exp
index 79944b1ba..7a5597727 100755
--- a/test/filters/seccomp-empty.exp
+++ b/test/filters/seccomp-empty.exp
@@ -42,7 +42,7 @@ expect {
42} 42}
43expect { 43expect {
44 timeout {puts "TESTING ERROR 0.7\n";exit} 44 timeout {puts "TESTING ERROR 0.7\n";exit}
45 "Child process initialized" 45 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
46} 46}
47sleep 2 47sleep 2
48send -- "exit\r" 48send -- "exit\r"
@@ -78,7 +78,7 @@ expect {
78} 78}
79expect { 79expect {
80 timeout {puts "TESTING ERROR 1.7\n";exit} 80 timeout {puts "TESTING ERROR 1.7\n";exit}
81 "Child process initialized" 81 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
82} 82}
83sleep 2 83sleep 2
84send -- "exit\r" 84send -- "exit\r"
@@ -120,7 +120,7 @@ expect {
120} 120}
121expect { 121expect {
122 timeout {puts "TESTING ERROR 2.7\n";exit} 122 timeout {puts "TESTING ERROR 2.7\n";exit}
123 "Child process initialized" 123 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
124} 124}
125sleep 2 125sleep 2
126send -- "exit\r" 126send -- "exit\r"
@@ -156,7 +156,7 @@ expect {
156} 156}
157expect { 157expect {
158 timeout {puts "TESTING ERROR 3.7\n";exit} 158 timeout {puts "TESTING ERROR 3.7\n";exit}
159 "Child process initialized" 159 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
160} 160}
161sleep 2 161sleep 2
162send -- "exit\r" 162send -- "exit\r"