summaryrefslogtreecommitdiff
path: root/t/op/read.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/read.t')
-rwxr-xr-xt/op/read.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/op/read.t b/t/op/read.t
index 8c571c035b..2746970d15 100755
--- a/t/op/read.t
+++ b/t/op/read.t
@@ -12,7 +12,7 @@ $got = read(FOO,$buf,4);
print ($got == 4 ? "ok 1\n" : "not ok 1\n");
print ($buf eq "perl" ? "ok 2\n" : "not ok 2 :$buf:\n");
-seek(FOO,20000,0);
+seek (FOO,0,2) || seek(FOO,20000,0);
$got = read(FOO,$buf,4);
print ($got == 0 ? "ok 3\n" : "not ok 3\n");