Skip to content

Commit c697d8a

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

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
@@ -1237,9 +1237,10 @@ sub _set_pg_version
12371237
# complain about that, too.
12381238
$pg_config = "$inst/bin/pg_config";
12391239
BAIL_OUT("pg_config not found: $pg_config")
1240-
unless -e $pg_config;
1240+
unless -e $pg_config
1241+
or ($TestLib::windows_os and -e "$pg_config.exe");
12411242
BAIL_OUT("pg_config not executable: $pg_config")
1242-
unless -x $pg_config;
1243+
unless $TestLib::windows_os or -x $pg_config;
12431244

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

0 commit comments

Comments
 (0)