Remove carriage returns from certain tap test output under Msys
These were causing spurious test failures.
This commit is contained in:
parent
2834855cb9
commit
ff85fc8d0b
@ -226,6 +226,7 @@ sub psql
|
||||
print("# Running SQL command: $sql\n");
|
||||
run [ 'psql', '-X', '-A', '-t', '-q', '-d', $dbname, '-f', '-' ], '<', \$sql, '>', \$stdout, '2>', \$stderr or die;
|
||||
chomp $stdout;
|
||||
$stdout =~ s/\r//g if $Config{osname} eq 'msys';
|
||||
return $stdout;
|
||||
}
|
||||
|
||||
@ -242,7 +243,9 @@ sub slurp_file
|
||||
{
|
||||
local $/;
|
||||
local @ARGV = @_;
|
||||
<>
|
||||
my $contents = <>;
|
||||
$contents =~ s/\r//g if $Config{osname} eq 'msys';
|
||||
return $contents;
|
||||
}
|
||||
|
||||
sub system_or_bail
|
||||
|
Loading…
x
Reference in New Issue
Block a user