summaryrefslogtreecommitdiff
path: root/t/op/lfs.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-30 21:52:07 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-30 21:52:07 +0000
commit52ece81a1bbab835394752a5d80edd505ff6ab70 (patch)
tree60961746cb27f6696687d296f71c4386ab05b922 /t/op/lfs.t
parentf06a04a3c518babd8e380099d750295752ca626b (diff)
downloadperl-52ece81a1bbab835394752a5d80edd505ff6ab70.tar.gz
Test nits.
p4raw-id: //depot/perl@8279
Diffstat (limited to 't/op/lfs.t')
-rw-r--r--t/op/lfs.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/op/lfs.t b/t/op/lfs.t
index 0ae3182f69..0a1c399840 100644
--- a/t/op/lfs.t
+++ b/t/op/lfs.t
@@ -14,6 +14,7 @@ BEGIN {
}
use strict;
+
our @s;
our $fail;
@@ -176,13 +177,12 @@ sub offset ($$) {
my $offset_is = eval $offset_will_be;
unless ($offset_is == $offset_want) {
print "# bad offset $offset_is, want $offset_want\n";
+ my ($offset_func) = ($offset_will_be =~ /^(\w+)/);
if (unpack("L", pack("L", $offset_want)) == $offset_is) {
- my($offset_func) = ($offset_will_be =~ /^(\w+)/);
print "# 32-bit wraparound suspected in $offset_func() since\n";
- print "# $offset_want cast into 32 bits is $offset_is.\n";
+ print "# $offset_want cast into 32 bits equals $offset_is.\n";
} elsif ($offset_want - unpack("L", pack("L", $offset_want)) - 1
- == $offset_is){
- my($offset_func) = ($offset_will_be =~ /^(\w+)/);
+ == $offset_is) {
print "# 32-bit wraparound suspected in $offset_func() since\n";
printf "# %s - unpack('L', pack('L', %s)) - 1 equals %s.\n",
$offset_want,
@@ -195,7 +195,7 @@ sub offset ($$) {
print "1..17\n";
-my $fail = 0;
+$fail = 0;
fail unless $s[7] == 5_000_000_003; # exercizes pp_stat
print "ok 1\n";