aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2022-03-10 16:42:57 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2022-03-10 16:42:57 +0100
commit00cb236addce37b13ed7d30093c8d47fba70e787 (patch)
tree67e6f51985fd92aa6ce964e7fe12c27a5a24436c
parentfix testing (diff)
downloadfirejail-00cb236addce37b13ed7d30093c8d47fba70e787.tar.gz
firejail-00cb236addce37b13ed7d30093c8d47fba70e787.tar.zst
firejail-00cb236addce37b13ed7d30093c8d47fba70e787.zip
fix testing
-rwxr-xr-xtest/fnetfilter/default.exp7
-rwxr-xr-xtest/fnetfilter/template.exp8
2 files changed, 12 insertions, 3 deletions
diff --git a/test/fnetfilter/default.exp b/test/fnetfilter/default.exp
index 8ba5f6858..545837cc1 100755
--- a/test/fnetfilter/default.exp
+++ b/test/fnetfilter/default.exp
@@ -31,9 +31,14 @@ after 100
31send -- "fnetfilter test1.net,33\r" 31send -- "fnetfilter test1.net,33\r"
32expect { 32expect {
33 timeout {puts "TESTING ERROR 4\n";exit} 33 timeout {puts "TESTING ERROR 4\n";exit}
34 "cannot open test1.net,33" 34 "Error:"
35}
36expect {
37 timeout {puts "TESTING ERROR 5\n";exit}
38 "is an invalid filename"
35} 39}
36after 100 40after 100
41
37send -- "rm outfile\r" 42send -- "rm outfile\r"
38after 100 43after 100
39 44
diff --git a/test/fnetfilter/template.exp b/test/fnetfilter/template.exp
index 216762325..2c5dba920 100755
--- a/test/fnetfilter/template.exp
+++ b/test/fnetfilter/template.exp
@@ -66,13 +66,17 @@ after 100
66send -- "fnetfilter test2.net,icmp-type,destination-unreachable,time-exceeded,echo-request\r" 66send -- "fnetfilter test2.net,icmp-type,destination-unreachable,time-exceeded,echo-request\r"
67expect { 67expect {
68 timeout {puts "TESTING ERROR 12\n";exit} 68 timeout {puts "TESTING ERROR 12\n";exit}
69 "cannot open test2.net," 69 "Error:"
70}
71expect {
72 timeout {puts "TESTING ERROR 13\n";exit}
73 "is an invalid filename"
70} 74}
71after 100 75after 100
72 76
73send -- "fnetfilter test3.net,44 outfile\r" 77send -- "fnetfilter test3.net,44 outfile\r"
74expect { 78expect {
75 timeout {puts "TESTING ERROR 13\n";exit} 79 timeout {puts "TESTING ERROR 14\n";exit}
76 "invalid template argument on line 1" 80 "invalid template argument on line 1"
77} 81}
78after 100 82after 100