aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-10 13:10:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-10 13:10:25 +0000
commitc212ebbdda5f12414151a82668936f90a0baf46f (patch)
tree0accd23032f18592030b52d3bd7645b444479038
parent83b8de3d439f308ebbcfee95953439f59236cfc3 (diff)
output the exit code from stunnel to stderr in case it is non-zero
-rw-r--r--tests/httpsserver.pl9
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;