Commit f6f59826 authored by Andrew Dunstan's avatar Andrew Dunstan

Don't use native methods in TestLib::slurp_file on Msys

Commit 114541d5 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.
parent ca266a06
...@@ -400,7 +400,7 @@ sub slurp_file ...@@ -400,7 +400,7 @@ sub slurp_file
my ($filename) = @_; my ($filename) = @_;
local $/; local $/;
my $contents; my $contents;
if (!$windows_os) if ($Config{osname} ne 'MSWin32')
{ {
open(my $in, '<', $filename) open(my $in, '<', $filename)
or die "could not read \"$filename\": $!"; or die "could not read \"$filename\": $!";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment