Content-Length: 257632 | pFad | http://github.com/postgrespro/postgres/commit/f6f59826f01188aa9603983d00b0cd3496e9359d

ED Don't use native methods in TestLib::slurp_file on Msys · postgrespro/postgres@f6f5982 · GitHub
Skip to content

Commit f6f5982

Browse files
committed
Don't use native methods in TestLib::slurp_file on Msys
Commit 114541d 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.
1 parent ca266a0 commit f6f5982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/TestLib.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ sub slurp_file
400400
my ($filename) = @_;
401401
local $/;
402402
my $contents;
403-
if (!$windows_os)
403+
if ($Config{osname} ne 'MSWin32')
404404
{
405405
open(my $in, '<', $filename)
406406
or die "could not read \"$filename\": $!";

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f6f59826f01188aa9603983d00b0cd3496e9359d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy