diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-23 06:05:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-23 06:05:30 +0000 |
commit | 474e9869ef506776cfde8eb413605cec0a59c33c (patch) | |
tree | 672ce2cdf2ee1219787fc3f3f24816297be9278a /test/ruby/test_io.rb | |
parent | 53a91a00fba59e3e35daeacb2e56c66750bfca03 (diff) | |
download | ruby-474e9869ef506776cfde8eb413605cec0a59c33c.tar.gz |
skip on SEEK_HOLE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index fa99ce7285..0bb22f8e97 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -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) |