From: Andrew Dunstan Date: Mon, 30 Sep 2019 19:48:54 +0000 (-0400) Subject: Suppress another CR in program output X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=863fa43e32b02963f240864245c6c922f619459f;p=postgresql Suppress another CR in program output This one was exposed by a12c75a10. Backpatch to release 11 where check_pg_config was introduced. --- diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index 92199792eb..905d0d178f 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -560,6 +560,7 @@ sub check_pg_config \$stdout, '2>', \$stderr or die "could not execute pg_config"; chomp($stdout); + $stdout =~ s/\r$//; open my $pg_config_h, '<', "$stdout/pg_config.h" or die "$!"; my $match = (grep { /^$regexp/ } <$pg_config_h>);