aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2019-11-27 15:45:44 -0500
committerAndrew Dunstan <andrew@dunslane.net>2019-11-27 15:45:44 -0500
commitf6f59826f01188aa9603983d00b0cd3496e9359d (patch)
tree65bb771527111d8699c76ef5534dc4eda46cb55d /src
parentca266a069a20c32a8f0a1df982a5a67d9483bcb3 (diff)
downloadpostgresql-f6f59826f01188aa9603983d00b0cd3496e9359d.tar.gz
postgresql-f6f59826f01188aa9603983d00b0cd3496e9359d.zip
Don't use native methods in TestLib::slurp_file on Msys
Commit 114541d58e has upset some buildfarm members running Msys, that weren't previously having problems, so the use of native Windows methods to open files is restricted by this patch to only MSVC builds.
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/TestLib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/TestLib.pm b/src/test/perl/TestLib.pm
index a377cdb226a..458b8013796 100644
--- a/src/test/perl/TestLib.pm
+++ b/src/test/perl/TestLib.pm
@@ -400,7 +400,7 @@ sub slurp_file
my ($filename) = @_;
local $/;
my $contents;
- if (!$windows_os)
+ if ($Config{osname} ne 'MSWin32')
{
open(my $in, '<', $filename)
or die "could not read \"$filename\": $!";