]> granicus.if.org Git - postgresql/commitdiff
Suppress another CR in program output
authorAndrew Dunstan <andrew@dunslane.net>
Mon, 30 Sep 2019 19:48:54 +0000 (15:48 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Mon, 30 Sep 2019 19:50:54 +0000 (15:50 -0400)
This one was exposed by a12c75a10.

Backpatch to release 11 where check_pg_config was introduced.

src/test/perl/TestLib.pm

index d2a9828dc62199b96f87b02d2ed835315ae7ddd2..4c3f60849437fca43e9e0a2948fcde23d4fcb114 100644 (file)
@@ -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>);