From: Jelmer Vernooij Date: Thu, 11 Jun 2009 17:59:26 +0000 (+0200) Subject: selftest: Fix exit code for format-subunit.pl. X-Git-Tag: tdb-1.1.5~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc216340a61d1d48a2b9844f66061b59c674465b;p=thirdparty%2Fsamba.git selftest: Fix exit code for format-subunit.pl. --- diff --git a/selftest/Subunit.pm b/selftest/Subunit.pm index 9ca68f3db21..42d16e34712 100644 --- a/selftest/Subunit.pm +++ b/selftest/Subunit.pm @@ -26,7 +26,6 @@ use strict; sub parse_results($$$) { my ($msg_ops, $statistics, $fh) = @_; - my $unexpected_ok = 0; my $expected_fail = 0; my $unexpected_fail = 0; my $unexpected_err = 0; @@ -114,10 +113,7 @@ sub parse_results($$$) return 1 if $unexpected_err > 0; return 1 if $unexpected_fail > 0; - return 1 if $unexpected_ok > 0 and $expected_fail > 0; - return 0 if $unexpected_ok > 0 and $expected_fail == 0; - return 0 if $expected_fail > 0; - return 1; + return 0; } sub start_test($)