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/lib/syslfs.t | 28 +++++++++++++++++++--------- t/op/lfs.t | 21 +++++++++++++++------ 2 files changed, 34 insertions(+), 15 deletions(-) (limited to 't') diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t index 4d38a8e779..14a968a88c 100644 --- a/t/lib/syslfs.t +++ b/t/lib/syslfs.t @@ -30,13 +30,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