]> 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:51:03 +0000 (15:51 -0400)
This one was exposed by a12c75a10.

Backpatch to release 11 where check_pg_config was introduced.

src/test/perl/TestLib.pm

index da7da60193d451b04d489d11df8c31892a5e4f7e..d6fe26c03694694618f4dcab704490cdceadb96e 100644 (file)
@@ -382,6 +382,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>);