X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/77166d5172a44cfc550ab7460a594b9190352364..56d29690c8ebd1c37bb431304b220d01f5ba17f0:/t/op/lfs.t?ds=inline diff --git a/t/op/lfs.t b/t/op/lfs.t index ae6aac6..6003df2 100644 --- a/t/op/lfs.t +++ b/t/op/lfs.t @@ -29,13 +29,15 @@ sub explain { print <big") or do { warn "open failed: $!\n"; bye }; binmode BIG; seek(BIG, 5_000_000_000, $SEEK_SET); + # Either the print or (more likely, thanks to buffering) the close will # fail if there are are filesize limitations (process or fs). my $print = print BIG "big"; my $close = close BIG if $print; unless ($print && $close) { - $ENV{LC_ALL} = "C"; - if ($! =~/File too large/) { - print "1..0\n# writing past 2GB failed\n"; - explain(); + unless ($print) { + print "# print failed: $!\n" + } else { + print "# close failed: $!\n" + } + if ($! =~/too large/i) { + print "1..0\n# writing past 2GB failed: process limits?\n"; + } elsif ($! =~ /quota/i) { + print "1..0\n# filesystem quota limits?\n"; } + explain(); bye(); }