diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-17 14:10:24 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-11-17 14:10:24 -0500 |
commit | 8bc496c3b68f6b5296eed3ebccc6f322d4d0ba52 (patch) | |
tree | 6a8c88729449186d5928c56d18a6bf155e9734dd /src/test/perl/SimpleTee.pm | |
parent | a6c4c07fc5cd0665568ff48ada3b65900fafa1af (diff) |
Back-patch fixes to make TAP tests work on Windows.
This back-ports commit 13d856e177e69083 and assorted followon patches
into 9.4 and 9.5. 9.5 and HEAD are now substantially identical in all
the files touched by this commit, except that 010_pg_basebackup.pl has
a few more tests related to the new --slot option. 9.4 has many fewer
TAP tests, but the test infrastructure files are substantially the same,
with the exception that 9.4 lacks the single-tmp-install infrastructure
introduced in 9.5 (commit dcae5faccab64776).
The primary motivation for this patch is to ensure that TAP test case
fixes can be back-patched without hazards of the kind seen in commits
34557f544/06dd4b44f. In principle it should also make the world safe
for running the TAP tests in the buildfarm in these branches; although
we might want to think about back-porting dcae5faccab64776 to 9.4 if
we're going to do that for real, because the TAP tests are quite disk
space hungry without it.
Michael Paquier did the back-porting work; original patches were by
him and assorted other people.
Diffstat (limited to 'src/test/perl/SimpleTee.pm')
-rw-r--r-- | src/test/perl/SimpleTee.pm | 1 |
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; } |