summaryrefslogtreecommitdiff
path: root/source4/selftest/selftest.pl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-02 15:54:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:42 -0500
commit37d63aab72b1e40577d61a87eab214601eaf82d2 (patch)
treedab529ad729a1b850711bba170e6c02b905060df /source4/selftest/selftest.pl
parent00d2a195547f639b631f95431edc1484a0acd9de (diff)
downloadsamba-37d63aab72b1e40577d61a87eab214601eaf82d2.tar.gz
samba-37d63aab72b1e40577d61a87eab214601eaf82d2.tar.bz2
samba-37d63aab72b1e40577d61a87eab214601eaf82d2.zip
r25466: fix calculation of $expected_ret, when there're
some expected and some unexpected failures within one testsuite. metze (This used to be commit ca2a07c71fd5aa2446c0c292b4b058acc0b54838)
Diffstat (limited to 'source4/selftest/selftest.pl')
-rwxr-xr-xsource4/selftest/selftest.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/selftest/selftest.pl b/source4/selftest/selftest.pl
index 231fd1e4c0..a88e97e01e 100755
--- a/source4/selftest/selftest.pl
+++ b/source4/selftest/selftest.pl
@@ -248,6 +248,7 @@ sub run_testsuite($$$$$$$)
$msg_ops, $msg_state, $statistics, *RESULT, \&expecting_failure);
my $ret = close(RESULT);
+ $ret = 0 unless $ret == 1;
cleanup_pcap($msg_state, $expected_ret, $ret);