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

Commitecbf6ac

Browse files
committed
tests: Trim newline from result returned by BackgroundPsql->query
This went unnoticed, because only a few existing callers ofBackgroundPsql->query used the result, and the ones that did were notbothered by an extra newline. I noticed because I was about to add anew test that checks the result.Backport to all supported versions, since I just backported theBackgroundPsql facility to all supported versions too.
1 parenta2dff27 commitecbf6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/perl/PostgreSQL/Test/BackgroundPsql.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ sub query
223223
$output =$self->{stdout};
224224

225225
# remove banner again, our caller doesn't care
226-
$output =~s/\n$banner$//s;
226+
$output =~s/\n$banner\n$//s;
227227

228228
# clear out output for the next query
229229
$self->{stdout} ='';

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp