summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-08-11 22:48:25 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-08-11 22:48:25 +0000
commit9f8fdb7deccb72904f51462a0509685b345f54c6 (patch)
treeae61ae6b2da9cb3e0cdee1d72c3b0a046b0a39d2 /t
parentdb618c41a27cbc531951f800a5fa5878ef822de0 (diff)
downloadperl-9f8fdb7deccb72904f51462a0509685b345f54c6.tar.gz
Don't bother with lfs testing if off_t is too small.
p4raw-id: //depot/cfgperl@3962
Diffstat (limited to 't')
-rw-r--r--t/lib/syslfs.t6
-rw-r--r--t/op/lfs.t6
2 files changed, 12 insertions, 0 deletions
diff --git a/t/lib/syslfs.t b/t/lib/syslfs.t
index 807ff11347..8f89bdb0ba 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 2704ecfa10..345fa26085 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 {