Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
adjust lseek test because of a change in lseek itself
'3' is not an invalid 'whence' anymore on some platforms, see:
http://man7.org/linux/man-pages/man2/lseek.2.html
"SEEK_DATA and SEEK_HOLE are nonstandard extensions also present in
Solaris, FreeBSD, and DragonFly BSD; they are proposed for inclusion
in the next POSIX revision (Issue 8)."
  • Loading branch information
FROGGS committed May 21, 2014
1 parent 1783628 commit 8d37d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/nqp/19-file-ops.t
Expand Up @@ -76,7 +76,7 @@ my $ok := 1;
try { nqp::seekfh($fh, -5, 0); $ok := 0; 1 }
ok($ok, 'seekfh before start of file fails');
$ok := 1;
try { nqp::seekfh($fh, 0, 3); $ok := 0; 1 }
try { nqp::seekfh($fh, 0, 5); $ok := 0; 1 }
ok($ok, 'seekfh with invalid whence fails');
nqp::closefh($fh);

Expand Down

0 comments on commit 8d37d8c

Please sign in to comment.