From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid calling TestLib::perl2host on a symlinked directory
Date: Thu, 29 Jul 2021 16:18:28 +0000
Message-ID: <E1m98js-0007S2-UL@gemulon.postgresql.org> (raw)
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.
Branch
------
REL_14_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/c42d3d04d7d03782ae179bf92ea0eb9f2fa8f409
Modified Files
--------------
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: andrew@dunslane.net
Subject: Re: pgsql: Avoid calling TestLib::perl2host on a symlinked directory
In-Reply-To: <E1m98js-0007S2-UL@gemulon.postgresql.org>
References: <E1m98js-0007S2-UL@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox