diff options
author | smitsohu <smitsohu@gmail.com> | 2022-03-10 16:42:57 +0100 |
---|---|---|
committer | smitsohu <smitsohu@gmail.com> | 2022-03-10 16:42:57 +0100 |
commit | 00cb236addce37b13ed7d30093c8d47fba70e787 (patch) | |
tree | 67e6f51985fd92aa6ce964e7fe12c27a5a24436c /test | |
parent | fix testing (diff) | |
download | firejail-00cb236addce37b13ed7d30093c8d47fba70e787.tar.gz firejail-00cb236addce37b13ed7d30093c8d47fba70e787.tar.zst firejail-00cb236addce37b13ed7d30093c8d47fba70e787.zip |
fix testing
Diffstat (limited to 'test')
-rwxr-xr-x | test/fnetfilter/default.exp | 7 | ||||
-rwxr-xr-x | test/fnetfilter/template.exp | 8 |
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 | |||
31 | send -- "fnetfilter test1.net,33\r" | 31 | send -- "fnetfilter test1.net,33\r" |
32 | expect { | 32 | expect { |
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 | } | ||
36 | expect { | ||
37 | timeout {puts "TESTING ERROR 5\n";exit} | ||
38 | "is an invalid filename" | ||
35 | } | 39 | } |
36 | after 100 | 40 | after 100 |
41 | |||
37 | send -- "rm outfile\r" | 42 | send -- "rm outfile\r" |
38 | after 100 | 43 | after 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 | |||
66 | send -- "fnetfilter test2.net,icmp-type,destination-unreachable,time-exceeded,echo-request\r" | 66 | send -- "fnetfilter test2.net,icmp-type,destination-unreachable,time-exceeded,echo-request\r" |
67 | expect { | 67 | expect { |
68 | timeout {puts "TESTING ERROR 12\n";exit} | 68 | timeout {puts "TESTING ERROR 12\n";exit} |
69 | "cannot open test2.net," | 69 | "Error:" |
70 | } | ||
71 | expect { | ||
72 | timeout {puts "TESTING ERROR 13\n";exit} | ||
73 | "is an invalid filename" | ||
70 | } | 74 | } |
71 | after 100 | 75 | after 100 |
72 | 76 | ||
73 | send -- "fnetfilter test3.net,44 outfile\r" | 77 | send -- "fnetfilter test3.net,44 outfile\r" |
74 | expect { | 78 | expect { |
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 | } |
78 | after 100 | 82 | after 100 |