summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Grittner <kgrittn@postgresql.org>2015-09-01 16:12:22 -0500
committerKevin Grittner <kgrittn@postgresql.org>2015-09-01 16:12:22 -0500
commitadb495049f575563930f3c1fbef2843bda3ae46d (patch)
tree88193a9ec0e7041179532cd22b6c076df7ce37ca
parent46bd95e2a873feb4799b77eca7276cf758e36cca (diff)
Flush to show results of TestLib.pm (TAP) test as we go.
It appears that some attempt was made to do this using autocommit, but it wasn't effective (at least on Ubuntu 14.04).
-rw-r--r--src/test/perl/SimpleTee.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/perl/SimpleTee.pm b/src/test/perl/SimpleTee.pm
index 8d31a4013c8..5da82d0f85d 100644
--- a/src/test/perl/SimpleTee.pm
+++ b/src/test/perl/SimpleTee.pm
@@ -20,6 +20,7 @@ sub PRINT {
my $ok = 1;
for my $fh (@$self) {
print $fh @_ or $ok = 0;
+ $fh->flush or $ok = 0;
}
return $ok;
}