1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Properly warn about exit codes that indicate success while tests claim

failure.
(This used to be commit 92873264d7)
This commit is contained in:
Jelmer Vernooij 2008-04-16 00:03:45 +02:00
parent d3729a8efa
commit 8eb6d59a46

View File

@ -81,6 +81,9 @@ sub end_testsuite($$$$$)
my $out = "";
if ($unexpected) {
if ($result eq "success" and not defined($reason)) {
$reason = "Expected negative exit code, got positive exit code";
}
$self->output_msg("ERROR: $reason\n");
push (@{$self->{suitesfailed}}, $name);
} else {