summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-16 00:17:03 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-16 00:17:03 +0200
commitc60a914052676aebb4ecdb94039c866862c56498 (patch)
treedc12e3b4e5784f9701f52a016d462f9e7b505204
parentf5c0be9208b7b59b1452caedd47204030c43a02d (diff)
downloadsamba-c60a914052676aebb4ecdb94039c866862c56498.tar.gz
samba-c60a914052676aebb4ecdb94039c866862c56498.tar.bz2
samba-c60a914052676aebb4ecdb94039c866862c56498.zip
Mention the actual exit code when a suite failed.
(This used to be commit 46ad68ad0b9c604a6519de68c9bce8f5154b5c14)
-rwxr-xr-xsource4/selftest/selftest.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/selftest/selftest.pl b/source4/selftest/selftest.pl
index d6cf8d3a00..385d31bbfd 100755
--- a/source4/selftest/selftest.pl
+++ b/source4/selftest/selftest.pl
@@ -256,10 +256,12 @@ sub run_testsuite($$$$$$)
my $ret = close(RESULT);
$ret = 0 unless $ret == 1;
+ my $exitcode = $? >> 8;
+
if ($ret == 1) {
$msg_ops->end_test([], $name, "success", $expected_ret != $ret, undef);
} else {
- $msg_ops->end_test([], $name, "failure", $expected_ret != $ret, "Returned $ret");
+ $msg_ops->end_test([], $name, "failure", $expected_ret != $ret, "Exit code was $exitcode");
}
cleanup_pcap($pcap_file, $expected_ret, $ret);