1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

selftest: Avoid decreasing total testsuites if the original total is not

known.
This commit is contained in:
Jelmer Vernooij 2009-06-03 18:33:50 +02:00
parent 24f01e70aa
commit 9bdf76c9c2

View File

@ -143,7 +143,11 @@ sub end_test($$$$$)
my ($self, $parents, $testname, $result, $unexpected, $reason) = @_;
if ($#$parents == -1) {
$self->end_testsuite($testname, $result, $unexpected, $reason);
if ($result eq "skip") {
$self->skip_testsuite($testname, $reason);
} else {
$self->end_testsuite($testname, $result, $unexpected, $reason);
}
return;
}
@ -233,7 +237,9 @@ sub skip_testsuite($$)
push (@{$self->{skips}->{$reason}}, $name);
$self->{totalsuites}--;
if ($self->{totalsuites}) {
$self->{totalsuites}--;
}
}
1;