diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 00:17:03 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 00:17:03 +0200 |
commit | c60a914052676aebb4ecdb94039c866862c56498 (patch) | |
tree | dc12e3b4e5784f9701f52a016d462f9e7b505204 /source4/selftest | |
parent | f5c0be9208b7b59b1452caedd47204030c43a02d (diff) | |
download | samba-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)
Diffstat (limited to 'source4/selftest')
-rwxr-xr-x | source4/selftest/selftest.pl | 4 |
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); |