tests: Trim newline from result returned by BackgroundPsql->query

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 34221af648f1b5b2aaa5c1814e692ec98063ba52
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-06-27T18:10:34Z
Releases: 14.13
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.

Files

PathChange+/−
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm modified +1 −1