Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff85fc8

Browse files
committed
Remove carriage returns from certain tap test output under Msys
These were causing spurious test failures.
1 parent2834855 commitff85fc8

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>', \$stderrordie;
228228
chomp$stdout;
229+
$stdout =~s/\r//gif$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//gif$Config{osname}eq'msys';
248+
return$contents;
246249
}
247250

248251
subsystem_or_bail

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp