integrate cfgperl contents into mainline
[p5sagit/p5-mst-13.2.git] / t / op / read.t
old mode 100644 (file)
new mode 100755 (executable)
index 019324c..2746970
@@ -1,6 +1,6 @@
 #!./perl
 
-# $Header: read.t,v 4.0 91/03/20 01:54:16 lwall Locked $
+# $RCSfile: read.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:17 $
 
 print "1..4\n";
 
@@ -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");