X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Flib%2Fsyslfs.t;h=ce91db6e3cb042c65ad7a3e297244f5a5b5903e6;hb=6b8eaf932222db04db65aff99717b9c1dbd0a692;hp=181a147f51fcba9a824b7d990c1ee02ea8c9c83f;hpb=ea2b5ef6d751420797c96208ee3824f54bf1d97a;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t index 181a147..ce91db6 100644 --- a/t/lib/syslfs.t +++ b/t/lib/syslfs.t @@ -3,13 +3,14 @@ # If you modify/add tests here, remember to update also t/op/lfs.t. BEGIN { - eval { my $q = pack "q", 0 }; - if ($@) { - print "1..0\n# no 64-bit types\n"; - bye(); - } chdir 't' if -d 't'; unshift @INC, '../lib'; + require Config; import Config; + # Don't bother if there are no quad offsets. + if ($Config{lseeksize} < 8) { + print "1..0\n# no 64-bit file offsets\n"; + exit(0); + } require Fcntl; import Fcntl; } @@ -19,15 +20,42 @@ sub bye { exit(0); } -# First try to figure out whether we have sparse files. +sub explain { + print <