diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-06-03 18:33:50 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-06-11 19:59:58 +0200 |
commit | 9bdf76c9c214d6f12c379f8feefe120fdae84377 (patch) | |
tree | 4df36c85b9cff758f51ac03f702aab71f88b6bca /selftest | |
parent | 24f01e70aaefb390d081bcd8cec6cd42282430b4 (diff) | |
download | samba-9bdf76c9c214d6f12c379f8feefe120fdae84377.tar.gz samba-9bdf76c9c214d6f12c379f8feefe120fdae84377.tar.xz samba-9bdf76c9c214d6f12c379f8feefe120fdae84377.zip |
selftest: Avoid decreasing total testsuites if the original total is not
known.
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/output/plain.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/selftest/output/plain.pm b/selftest/output/plain.pm index 509e0669102..20e5abc253a 100644 --- a/selftest/output/plain.pm +++ b/selftest/output/plain.pm @@ -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; |