aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2019-09-30 15:48:54 -0400
committerAndrew Dunstan <andrew@dunslane.net>2019-09-30 15:50:54 -0400
commitb60f9afcf4bfe6b1ff73b49b9bab20dde356c7f4 (patch)
treeb7f9c5293a445defb3954e7dc069514655481388
parentca0b3828504a51247607913e16f45c635ec168b6 (diff)
downloadpostgresql-b60f9afcf4bfe6b1ff73b49b9bab20dde356c7f4.tar.gz
postgresql-b60f9afcf4bfe6b1ff73b49b9bab20dde356c7f4.zip
Suppress another CR in program output
This one was exposed by a12c75a10. Backpatch to release 11 where check_pg_config was introduced.
-rw-r--r--src/test/perl/TestLib.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index d2a9828dc62..4c3f6084943 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>);