From a6ea3f6935b84c17fd4dc3db1ec73c57038f8a11 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Fri, 27 Jul 2012 18:08:23 -0400 Subject: [PATCH] [test suite] minor bug fix for file existence check --- test/test-fwknop.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index d4bc38c8..7d6d8672 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -3029,7 +3029,7 @@ sub init() { for my $file (glob("$output_dir/*.test"), "$output_dir/init", $tmp_rc_file, $logfile, $key_gen_file) { - next unless -d $file; + next unless -e $file; unlink $file or die "[*] Could not unlink($file)"; }