summaryrefslogtreecommitdiff
path: root/source4/selftest/output
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-21 23:09:56 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-21 23:09:56 +0200
commitafa850910ff7845b2c8b19fdcf6fbb703e42d2db (patch)
tree335c75957b7a58ac40f854c47ccabc6ef2c72f3e /source4/selftest/output
parentbeee9debeab72ce172575be6a93f1fb712bb6026 (diff)
downloadsamba-afa850910ff7845b2c8b19fdcf6fbb703e42d2db.tar.gz
samba-afa850910ff7845b2c8b19fdcf6fbb703e42d2db.tar.bz2
samba-afa850910ff7845b2c8b19fdcf6fbb703e42d2db.zip
Avoid printing characters when in immediate mode.
Diffstat (limited to 'source4/selftest/output')
-rw-r--r--source4/selftest/output/plain.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/selftest/output/plain.pm b/source4/selftest/output/plain.pm
index bad6505e93..4e1e290534 100644
--- a/source4/selftest/output/plain.pm
+++ b/source4/selftest/output/plain.pm
@@ -124,10 +124,12 @@ sub end_test($$$$$)
unless ($unexpected) {
$self->{test_output}->{$self->{NAME}} = "";
- if ($result eq "failure") { print "f"; }
- elsif ($result eq "skip") { print "s"; }
- elsif ($result eq "success") { print "."; }
- else { print "?($result)"; }
+ if (not $self->{immediate}) {
+ if ($result eq "failure") { print "f"; }
+ elsif ($result eq "skip") { print "s"; }
+ elsif ($result eq "success") { print "."; }
+ else { print "?($result)"; }
+ }
return;
}