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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: ecbf6ac51df27275fb0db493bf163ef98ac00c6a
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-06-27T18:09:58Z
Releases: 17.0
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