diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2021-10-15 12:56:29 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2021-10-15 12:56:29 -0400 |
commit | 15124d0e22ed2280e4603638e5baede190ae584c (patch) | |
tree | 85e1291c27d4bba38ad476c03931ec1c26ee6395 /src/test/perl/PostgresNode.pm | |
parent | cd3f429d9565b2e5caf0980ea7c707e37bc3b317 (diff) | |
download | postgresql-15124d0e22ed2280e4603638e5baede190ae584c.tar.gz postgresql-15124d0e22ed2280e4603638e5baede190ae584c.zip |
Fix PostgresNode install_path sanity tests that fail on Windows
Backpatch to 14 where install_path was introduced.
Diffstat (limited to 'src/test/perl/PostgresNode.pm')
-rw-r--r-- | src/test/perl/PostgresNode.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index c59da758c7e..ba80baf0913 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -1271,9 +1271,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 |