summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-11 19:59:26 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-11 20:00:00 +0200
commitcc216340a61d1d48a2b9844f66061b59c674465b (patch)
tree963e6aaeaaf672a9bb32bcf28a9e8649809152ad /selftest
parent3344df8d2fca00eba908d971bd1c7d3a948c9f1a (diff)
downloadsamba-cc216340a61d1d48a2b9844f66061b59c674465b.tar.gz
samba-cc216340a61d1d48a2b9844f66061b59c674465b.tar.xz
samba-cc216340a61d1d48a2b9844f66061b59c674465b.zip
selftest: Fix exit code for format-subunit.pl.
Diffstat (limited to 'selftest')
-rw-r--r--selftest/Subunit.pm6
1 files changed, 1 insertions, 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($)