Avoid calling TestLib::perl2host on a symlinked directory
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Jul 2021 16:15:03 +0000 (12:15 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 29 Jul 2021 16:17:13 +0000 (12:17 -0400)
commitc42d3d04d7d03782ae179bf92ea0eb9f2fa8f409
tree4e7f5a7bb66ee6fd693ed94f1965bc0eb33eae89
parent68011e17d098da66070a2d648a609625241f73f6
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