Avoid calling TestLib::perl2host on a symlinked directory
commitb35a67bc04243da609843949c53e6841e748243a
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Jul 2021 16:15:03 +0000 (29 12:15 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Jul 2021 16:15:03 +0000 (29 12:15 -0400)
treeea9d0765202ad440fec362ef4b8e09f06cc6dced
parentbad106752272c05de5a56036b8a84ae6ff3249a0
Avoid calling TestLib::perl2host on a symlinked directory

Certain versions of msys2/Windows have been observed to resolve symlinks
in perl2host rather than just follow them. This defeats using a
symlinked shorter path to a longer path, and makes certain tests fail.
We therefore call perl2host on the parent directory of the symlink and
thereafter just use that result.

Apply to release 14 where the problem has been observed.
src/bin/pg_basebackup/t/010_pg_basebackup.pl