Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ecbf6ac

Browse files
committed
tests: Trim newline from result returned by BackgroundPsql->query
This went unnoticed, because only a few existing callers of BackgroundPsql->query used the result, and the ones that did were not bothered by an extra newline. I noticed because I was about to add a new test that checks the result. Backport to all supported versions, since I just backported the BackgroundPsql facility to all supported versions too.
1 parent a2dff27 commit ecbf6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)