diff options
author | netblue30 <netblue30@protonmail.com> | 2022-02-09 13:03:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 13:03:10 -0500 |
commit | 03395e10bfd597eff5e324be53e24eb44898db98 (patch) | |
tree | 68f382289719461dc85180b8f7abb327b5787c18 /test/fs/whitelist-dev.exp | |
parent | Fix iridium.profile (diff) | |
parent | testing: fix expect matching of numbers (diff) | |
download | firejail-03395e10bfd597eff5e324be53e24eb44898db98.tar.gz firejail-03395e10bfd597eff5e324be53e24eb44898db98.tar.zst firejail-03395e10bfd597eff5e324be53e24eb44898db98.zip |
Merge pull request #4918 from smitsohu/tests2
testing: fix expect matching of numbers
Diffstat (limited to 'test/fs/whitelist-dev.exp')
-rwxr-xr-x | test/fs/whitelist-dev.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/fs/whitelist-dev.exp b/test/fs/whitelist-dev.exp index 83e6bad49..7459462f8 100755 --- a/test/fs/whitelist-dev.exp +++ b/test/fs/whitelist-dev.exp | |||
@@ -10,7 +10,7 @@ match_max 100000 | |||
10 | send -- "firejail --whitelist=/dev/null --debug\r" | 10 | send -- "firejail --whitelist=/dev/null --debug\r" |
11 | expect { | 11 | expect { |
12 | timeout {puts "TESTING ERROR 0\n";exit} | 12 | timeout {puts "TESTING ERROR 0\n";exit} |
13 | "Child process initialized" | 13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
14 | } | 14 | } |
15 | sleep 1 | 15 | sleep 1 |
16 | 16 | ||
@@ -26,7 +26,7 @@ sleep 1 | |||
26 | send -- "firejail --whitelist=/dev/null --whitelist=/dev/random\r" | 26 | send -- "firejail --whitelist=/dev/null --whitelist=/dev/random\r" |
27 | expect { | 27 | expect { |
28 | timeout {puts "TESTING ERROR 2\n";exit} | 28 | timeout {puts "TESTING ERROR 2\n";exit} |
29 | "Child process initialized" | 29 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
30 | } | 30 | } |
31 | sleep 1 | 31 | sleep 1 |
32 | 32 | ||
@@ -42,7 +42,7 @@ sleep 1 | |||
42 | send -- "firejail --private-dev --debug\r" | 42 | send -- "firejail --private-dev --debug\r" |
43 | expect { | 43 | expect { |
44 | timeout {puts "TESTING ERROR 4\n";exit} | 44 | timeout {puts "TESTING ERROR 4\n";exit} |
45 | "Child process initialized" | 45 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
46 | } | 46 | } |
47 | sleep 1 | 47 | sleep 1 |
48 | 48 | ||
@@ -97,7 +97,7 @@ if { $have_snd > 0 } { | |||
97 | send -- "firejail --private-dev --nosound ls /dev\r" | 97 | send -- "firejail --private-dev --nosound ls /dev\r" |
98 | expect { | 98 | expect { |
99 | timeout {puts "TESTING ERROR 7\n";exit} | 99 | timeout {puts "TESTING ERROR 7\n";exit} |
100 | "Child process initialized" | 100 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
101 | } | 101 | } |
102 | expect { | 102 | expect { |
103 | timeout {puts "TESTING ERROR 8\n";exit} | 103 | timeout {puts "TESTING ERROR 8\n";exit} |
@@ -114,7 +114,7 @@ if { $have_dvd > 0 } { | |||
114 | send -- "firejail --private-dev --nodvd ls /dev\r" | 114 | send -- "firejail --private-dev --nodvd ls /dev\r" |
115 | expect { | 115 | expect { |
116 | timeout {puts "TESTING ERROR 10\n";exit} | 116 | timeout {puts "TESTING ERROR 10\n";exit} |
117 | "Child process initialized" | 117 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
118 | } | 118 | } |
119 | expect { | 119 | expect { |
120 | timeout {puts "TESTING ERROR 11\n";exit} | 120 | timeout {puts "TESTING ERROR 11\n";exit} |
@@ -135,7 +135,7 @@ if { $have_dri > 0 } { | |||
135 | send -- "firejail --private-dev --no3d ls /dev\r" | 135 | send -- "firejail --private-dev --no3d ls /dev\r" |
136 | expect { | 136 | expect { |
137 | timeout {puts "TESTING ERROR 17\n";exit} | 137 | timeout {puts "TESTING ERROR 17\n";exit} |
138 | "Child process initialized" | 138 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" |
139 | } | 139 | } |
140 | expect { | 140 | expect { |
141 | timeout {puts "TESTING ERROR 18\n";exit} | 141 | timeout {puts "TESTING ERROR 18\n";exit} |