From 9f8fdb7deccb72904f51462a0509685b345f54c6 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Wed, 11 Aug 1999 22:48:25 +0000 Subject: [PATCH] Don't bother with lfs testing if off_t is too small. p4raw-id: //depot/cfgperl@3962 --- t/lib/syslfs.t | 6 ++++++ t/op/lfs.t | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t index 807ff11..8f89bdb 100644 --- a/t/lib/syslfs.t +++ b/t/lib/syslfs.t @@ -11,6 +11,12 @@ BEGIN { } 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 offsets\n"; + bye(); + } require Fcntl; import Fcntl; } diff --git a/t/op/lfs.t b/t/op/lfs.t index 2704ecf..345fa26 100644 --- a/t/op/lfs.t +++ b/t/op/lfs.t @@ -11,6 +11,12 @@ BEGIN { } chdir 't' if -d 't'; unshift @INC, '../lib'; + # Don't bother if there are no quad offsets. + require Config; import Config; + if ($Config{lseeksize} < 8) { + print "1..0\n# no 64-bit offsets\n"; + bye(); + } } sub bye { -- 2.7.4