tests: Trim newline from result returned by BackgroundPsql->query
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 18:06:27 +0000 (21:06 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 27 Jun 2024 18:10:27 +0000 (21:10 +0300)
commite00a9a4c7bcae0f1b798b567bb37841ae7c6ff7d
treea4a97a54d4153535dfa18335c4dde12433142ba1
parent79228c0459817cfbf830395c77735d8f3bce3f47
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.
src/test/perl/PostgreSQL/Test/BackgroundPsql.pm