summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-06-11 19:47:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-11 20:00:00 +0200
commit3344df8d2fca00eba908d971bd1c7d3a948c9f1a (patch)
treecae11c6e34c9a2f181cc5fb007aff39812f22092 /selftest
parent43143aa481c1cdd1765aac5ac959a8f11926b46a (diff)
downloadsamba-3344df8d2fca00eba908d971bd1c7d3a948c9f1a.tar.gz
samba-3344df8d2fca00eba908d971bd1c7d3a948c9f1a.tar.bz2
samba-3344df8d2fca00eba908d971bd1c7d3a948c9f1a.zip
selftest: Fix uninitialized variables in selftest output.
Diffstat (limited to 'selftest')
-rw-r--r--selftest/output/buildfarm.pm13
1 files changed, 11 insertions, 2 deletions
diff --git a/selftest/output/buildfarm.pm b/selftest/output/buildfarm.pm
index bd21fc683d..09b84de99e 100644
--- a/selftest/output/buildfarm.pm
+++ b/selftest/output/buildfarm.pm
@@ -69,14 +69,22 @@ sub output_msg($$)
{
my ($self, $output) = @_;
- $self->{test_output}->{$self->{NAME}} .= $output;
+ if (defined($self->{NAME})) {
+ $self->{test_output}->{$self->{NAME}} .= $output;
+ } else {
+ print $output;
+ }
}
sub control_msg($$)
{
my ($self, $output) = @_;
- $self->{test_output}->{$self->{NAME}} .= $output;
+ if (defined($self->{NAME})) {
+ $self->{test_output}->{$self->{NAME}} .= $output;
+ } else {
+ print $output;
+ }
}
sub end_testsuite($$$$$$)
@@ -89,6 +97,7 @@ sub end_testsuite($$$$$$)
if ($result ne "success") {
$self->{statistics}->{SUITES_FAIL}++;
}
+ $self->{NAME} = undef;
}
sub start_test($$$)