diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-04-10 13:10:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-04-10 13:10:25 +0000 |
commit | c212ebbdda5f12414151a82668936f90a0baf46f (patch) | |
tree | 0accd23032f18592030b52d3bd7645b444479038 | |
parent | 83b8de3d439f308ebbcfee95953439f59236cfc3 (diff) |
output the exit code from stunnel to stderr in case it is non-zero
-rw-r--r-- | tests/httpsserver.pl | 9 |
1 files changed, 8 insertions, 1 deletions
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; |