Skip to content

Commit ff85fc8

Browse files
committed
Remove carriage returns from certain tap test output under Msys
These were causing spurious test failures.
1 parent 2834855 commit ff85fc8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/perl/TestLib.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ sub psql
226226
print("# Running SQL command: $sql\n");
227227
run [ 'psql', '-X', '-A', '-t', '-q', '-d', $dbname, '-f', '-' ], '<', \$sql, '>', \$stdout, '2>', \$stderr or die;
228228
chomp $stdout;
229+
$stdout =~ s/\r//g if $Config{osname} eq 'msys';
229230
return $stdout;
230231
}
231232

@@ -242,7 +243,9 @@ sub slurp_file
242243
{
243244
local $/;
244245
local @ARGV = @_;
245-
<>
246+
my $contents = <>;
247+
$contents =~ s/\r//g if $Config{osname} eq 'msys';
248+
return $contents;
246249
}
247250

248251
sub system_or_bail

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy