Skip to content

Commit 15124d0

Browse files
committed
Fix PostgresNode install_path sanity tests that fail on Windows
Backpatch to 14 where install_path was introduced.
1 parent cd3f429 commit 15124d0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,9 +1271,10 @@ sub _set_pg_version
12711271
# complain about that, too.
12721272
$pg_config = "$inst/bin/pg_config";
12731273
BAIL_OUT("pg_config not found: $pg_config")
1274-
unless -e $pg_config;
1274+
unless -e $pg_config
1275+
or ($TestLib::windows_os and -e "$pg_config.exe");
12751276
BAIL_OUT("pg_config not executable: $pg_config")
1276-
unless -x $pg_config;
1277+
unless $TestLib::windows_os or -x $pg_config;
12771278

12781279
# Leave $pg_config install_path qualified, to be sure we get the right
12791280
# version information, below, or die trying

0 commit comments

Comments
 (0)