]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix places in TestLib.pm in need of adaptation to the output of Msys perl
authorMichael Paquier <michael@paquier.xyz>
Tue, 21 Sep 2021 23:43:30 +0000 (08:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 21 Sep 2021 23:43:30 +0000 (08:43 +0900)
commit1b6d1ead3bfbf1771d2cf8fd975f980a16211348
tree8dcc7a6626bd1dd8a45355cf63685cf8b8ac30ec
parent13921c5112667063c3d59de601a9ff521eda2860
Fix places in TestLib.pm in need of adaptation to the output of Msys perl

Contrary to the output of native perl, Msys perl generates outputs with
CRLFs characters.  There are already places in the TAP code where CRLFs
(\r\n) are automatically converted to LF (\n) on Msys, but we missed a
couple of places when running commands and using their output for
comparison, that would lead to failures.

This problem has been found thanks to the test added in 5adb067 using
TestLib::command_checks_all(), but after a closer look more code paths
were missing a filter.

This is backpatched all the way down to prevent any surprises if a new
test is introduced in stable branches.

Reviewed-by: Andrew Dunstan, Álvaro Herrera
Discussion: https://postgr.es/m/1252480.1631829409@sss.pgh.pa.us
Backpatch-through: 9.6
src/test/perl/TestLib.pm