From cc216340a61d1d48a2b9844f66061b59c674465b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 11 Jun 2009 19:59:26 +0200 Subject: [PATCH] selftest: Fix exit code for format-subunit.pl. --- selftest/Subunit.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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($) -- 2.11.4.GIT