]> granicus.if.org Git - postgresql/commitdiff
Flush to show results of TestLib.pm (TAP) test as we go.
authorKevin Grittner <kgrittn@postgresql.org>
Tue, 1 Sep 2015 21:12:22 +0000 (16:12 -0500)
committerKevin Grittner <kgrittn@postgresql.org>
Tue, 1 Sep 2015 21:12:22 +0000 (16:12 -0500)
It appears that some attempt was made to do this using autocommit,
but it wasn't effective (at least on Ubuntu 14.04).

src/test/perl/SimpleTee.pm

index 8d31a4013c8786e2ce59a765c9d2d0ae2c96251b..5da82d0f85d3d2b117b03063baebc5d303605458 100644 (file)
@@ -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;
 }