From 00cb236addce37b13ed7d30093c8d47fba70e787 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Thu, 10 Mar 2022 16:42:57 +0100 Subject: fix testing --- test/fnetfilter/default.exp | 7 ++++++- test/fnetfilter/template.exp | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'test/fnetfilter') 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 send -- "fnetfilter test1.net,33\r" expect { timeout {puts "TESTING ERROR 4\n";exit} - "cannot open test1.net,33" + "Error:" +} +expect { + timeout {puts "TESTING ERROR 5\n";exit} + "is an invalid filename" } after 100 + send -- "rm outfile\r" after 100 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 send -- "fnetfilter test2.net,icmp-type,destination-unreachable,time-exceeded,echo-request\r" expect { timeout {puts "TESTING ERROR 12\n";exit} - "cannot open test2.net," + "Error:" +} +expect { + timeout {puts "TESTING ERROR 13\n";exit} + "is an invalid filename" } after 100 send -- "fnetfilter test3.net,44 outfile\r" expect { - timeout {puts "TESTING ERROR 13\n";exit} + timeout {puts "TESTING ERROR 14\n";exit} "invalid template argument on line 1" } after 100 -- cgit v1.2.3-54-g00ecf