Content-Length: 257401 | pFad | http://github.com/postgrespro/postgres/commit/ecbf6ac51df27275fb0db493bf163ef98ac00c6a

E7 tests: Trim newline from result returned by BackgroundPsql->query · postgrespro/postgres@ecbf6ac · GitHub
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

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ecbf6ac51df27275fb0db493bf163ef98ac00c6a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy