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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

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