diff options
-rw-r--r-- | tests/httpsserver.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl index 45eb92060..a21307df2 100644 --- a/tests/httpsserver.pl +++ b/tests/httpsserver.pl @@ -87,7 +87,13 @@ foreach my $veropt (('-version', '-V')) { my $cmd; if(!$ver_major) { - print "no stunnel or unknown version\n"; + if(-x "$stunnel" && ! -d "$stunnel") { + print "unknown stunnel version\n"; + } + else { + print "no stunnel\n"; + } + exit; } elsif($ver_major < 4) { # stunnel version less than 4.00 |