From b60f9afcf4bfe6b1ff73b49b9bab20dde356c7f4 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Mon, 30 Sep 2019 15:48:54 -0400 Subject: [PATCH] Suppress another CR in program output This one was exposed by a12c75a10. Backpatch to release 11 where check_pg_config was introduced. --- src/test/perl/TestLib.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm index d2a9828dc6..4c3f608494 100644 --- a/src/test/perl/TestLib.pm +++ b/src/test/perl/TestLib.pm @@ -388,6 +388,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>); -- 2.40.0