These were causing spurious test failures.
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;
}
{
local $/;
local @ARGV = @_;
- <>
+ my $contents = <>;
+ $contents =~ s/\r//g if $Config{osname} eq 'msys';
+ return $contents;
}
sub system_or_bail