Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1df2b50

Browse files
committed
Try to unbreak 021_row_visibility.pl on mingw.
Thanks to Andrew for proposing and testing this fix. It's possible that we should address this on a more fundamental basis, e.g. by configuring PerlIO to to CR/LF conversion for us, but this approach already exists in other places. And it's nice to unbreak the BF. Proposed-By: Andrew Dunstan <andrew.dunstan@2ndquadrant.com> Discussion: https://postgr.es/m/2355d1f0-0244-da9c-ef0c-7542b944e1ac@2ndQuadrant.com
1 parent 32a9c0b commit 1df2b50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/recovery/t/021_row_visibility.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PostgresNode;
77
use TestLib;
88
use Test::More tests => 10;
9+
use Config;
910

1011
# Initialize primary node
1112
my $node_primary = get_new_node('primary');
@@ -167,6 +168,9 @@ sub send_query_and_wait
167168
$$psql{run}->pump_nb();
168169
while (1)
169170
{
171+
# See PostgresNode.pm's psql()
172+
$$psql{stdout} =~ s/\r\n/\n/g if $Config{osname} eq 'msys';
173+
170174
last if $$psql{stdout} =~ /$untl/;
171175

172176
if ($psql_timeout->is_expired)

0 commit comments

Comments
 (0)