From f648fca6a25677f81f35af2f6bd9843f46f7147b Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Mon, 11 Apr 2016 20:47:29 -0400 Subject: [PATCH] [test suite] apply loopback interface to invalid pcap filter test --- test/test-fwknop.pl | 2 +- test/tests/basic_operations.pl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index 42942f21..b859cddc 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -185,7 +185,7 @@ my $test_limit = 0; my $list_mode = 0; my $diff_dir1 = ''; my $diff_dir2 = ''; -my $loopback_intf = ''; +our $loopback_intf = ''; my $default_pkt_tries = 10; my $send_all_loop_once = 0; my $detect_server_loop_once = 0; diff --git a/test/tests/basic_operations.pl b/test/tests/basic_operations.pl index f25a5fd3..b49ae634 100644 --- a/test/tests/basic_operations.pl +++ b/test/tests/basic_operations.pl @@ -2654,7 +2654,8 @@ 'subcategory' => 'server', 'detail' => 'invalid pcap filter', 'function' => \&generic_exec, - 'cmdline' => "$fwknopdCmd $default_server_conf_args -f -P proto invalid", + 'cmdline' => "$fwknopdCmd $default_server_conf_args " . + "-i $loopback_intf -f -P proto invalid", 'exec_err' => $YES, }, {