From eed7fde46a7c97cd15428b560d0a91c36138ee71 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Fri, 17 Sep 1999 11:49:30 +0000 Subject: Filesystem quotas may stop you from using large files. p4raw-id: //depot/cfgperl@4167 --- t/op/lfs.t | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 't/op/lfs.t') diff --git a/t/op/lfs.t b/t/op/lfs.t index ae6aac6079..af7853b270 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"; + unless ($print) { + print "# print failed: $!\n" + } else { + print "# close failed: $!\n" + } if ($! =~/File too large/) { print "1..0\n# writing past 2GB failed\n"; explain(); -- cgit v1.2.1