Re: TAP tests and symlinks on Windows
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-06-17T07:41:12Z
Lists: pgsql-hackers
On Tue, Jun 16, 2020 at 08:32:03AM -0400, Andrew Dunstan wrote: > On 6/16/20 8:24 AM, Peter Eisentraut wrote: >> MSYS2, which is basically Cygwin, emulates symlinks with junction >> points, so this happens to work for our purpose. We could therefore >> enable these tests in that environment, if we could come up with a >> reliable way to detect it. Hmm. In this case does perl's -l think that a junction point is corrently a soft link or not? We have a check based on that in pg_basebackup's test and -l fails when it sees to a junction point, forcing us to skip this test. > From src/bin/pg_dump/t/010_dump_connstr.pl: > > if ($^O eq 'msys' && `uname -or` =~ /^[2-9].*Msys/) Smart. This could become a central variable in TestLib.pm. -- Michael
Commits
-
Enable almost all TAP tests involving symlinks on Windows
- d66b23b032d7 14.0 landed