Subject: | test bug in t/20-remap.t |
In t/20-remap.t the test maps the temp file as
map_handle $map, $fh, '>'
On a SLES10 system this results in protection bits of "2" which means
write-only. To be correct the command should read
map_handle $map, $fh, '+>'
Subject: | File-Map-remap.diff |
--- File-Map-0.36/t/20-remap.t 2011-01-26 21:53:59.000000000 +0100
+++ File-Map-0.36.new/t/20-remap.t 2011-04-20 18:01:56.000000000 +0200
@@ -12,7 +12,7 @@
print {$fh} "$_ pidgeons are evil\n" for 1 .. 1000;
my $map;
-lives_ok { map_handle $map, $fh, '>' } 'Can map tempfile';
+lives_ok { map_handle $map, $fh, '+>' } 'Can map tempfile';
is length $map, -s $fh, 'map length equals file length';