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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 071e19a36c68dd5f1d949ecf9f110f1ec95a9532
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-06-27T18:08:49Z
Releases: 13.16
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