From c212ebbdda5f12414151a82668936f90a0baf46f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 10 Apr 2006 13:10:25 +0000 Subject: output the exit code from stunnel to stderr in case it is non-zero --- tests/httpsserver.pl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/httpsserver.pl b/tests/httpsserver.pl index 068f89e3e..9b4cec0c9 100644 --- a/tests/httpsserver.pl +++ b/tests/httpsserver.pl @@ -82,6 +82,13 @@ if($verbose) { print "HTTPS server: $cmd\n"; } -system($cmd); +my $rc = system($cmd); + +$rc >>= 8; +if($rc) { + print STDERR "stunnel exited with $rc!\n"; +} unlink $conffile; + +exit $rc; -- cgit v1.2.3