Skip to content

Commit acea505

Browse files
committed
Improve msys2 detection for TAP tests
Perl instances on some msys toolchains (e.g. UCRT64) have their configured osname set to 'MSWin32' rather than 'msys'. The test for the msys2 platform is adjusted accordingly. Backpatch to release 14.
1 parent fefce9e commit acea505

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/perl/PostgreSQL/Test/Utils.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ BEGIN
142142
# Must be set early
143143
$windows_os = $Config{osname} eq 'MSWin32' || $Config{osname} eq 'msys';
144144
# Check if this environment is MSYS2.
145-
$is_msys2 = $^O eq 'msys' && `uname -or` =~ /^[2-9].*Msys/;
145+
$is_msys2 = $windows_os && -x '/usr/bin/uname' &&
146+
`uname -or` =~ /^[2-9].*Msys/;
146147

147148
if ($windows_os)
148149
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy