summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2021-10-15 12:56:29 -0400
committerAndrew Dunstan <andrew@dunslane.net>2021-10-15 12:58:17 -0400
commitc697d8a39b9001281aa62249afb01d4ab5e63703 (patch)
tree55ecf9728a7e03369d9643def2261094e610bd5c /src
parent5863115e4cb16bd905ed78a481457c5ff92ebef4 (diff)
Fix PostgresNode install_path sanity tests that fail on Windows
Backpatch to 14 where install_path was introduced.
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/PostgresNode.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm
index ed5b4a1c4b5..02a9f49843a 100644
--- a/src/test/perl/PostgresNode.pm
+++ b/src/test/perl/PostgresNode.pm
@@ -1237,9 +1237,10 @@ sub _set_pg_version
# complain about that, too.
$pg_config = "$inst/bin/pg_config";
BAIL_OUT("pg_config not found: $pg_config")
- unless -e $pg_config;
+ unless -e $pg_config
+ or ($TestLib::windows_os and -e "$pg_config.exe");
BAIL_OUT("pg_config not executable: $pg_config")
- unless -x $pg_config;
+ unless $TestLib::windows_os or -x $pg_config;
# Leave $pg_config install_path qualified, to be sure we get the right
# version information, below, or die trying