mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip on SEEK_HOLE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
53a91a00fb
commit
474e9869ef
1 changed files with 2 additions and 0 deletions
|
@ -1733,6 +1733,7 @@ class TestIO < Test::Unit::TestCase
|
|||
|
||||
if defined?(IO::SEEK_HOLE)
|
||||
open(t.path) { |f|
|
||||
break unless can_seek_data(f)
|
||||
assert_equal("foo\n", f.gets)
|
||||
f.seek(0, IO::SEEK_HOLE)
|
||||
assert_operator(f.pos, :>, 20)
|
||||
|
@ -1783,6 +1784,7 @@ class TestIO < Test::Unit::TestCase
|
|||
|
||||
if defined?(IO::SEEK_HOLE)
|
||||
open(t.path) { |f|
|
||||
break unless can_seek_data(f)
|
||||
assert_equal("foo\n", f.gets)
|
||||
f.seek(0, :HOLE)
|
||||
assert_operator(f.pos, :>, 20)
|
||||
|
|
Loading…
Add table
Reference in a new issue