Consolidate methods for translating a Perl path to a Windows path.
This fixes some TAP suites when using msys Perl and a builddir located
in an msys mount point other than "/". For example, builddir=/c/pg
exhibited the problem, since /c/pg falls in mount point "/c".
Back-patch to 9.6, where tests first started to perform such
translations. In back branches, offer both new and old APIs.
Reviewed by Andrew Dunstan.
Discussion: https://postgr.es/m/20190610045838.GA238501@rfd.leadboat.com
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/186113b049c50a608b575e2597209e9eda99d83c
Modified Files
--------------
src/test/perl/PostgresNode.pm | 7 +++----
src/test/perl/TestLib.pm | 28 ++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 4 deletions(-)