summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io_buffer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_io_buffer.rb b/test/ruby/test_io_buffer.rb
index 2204c3db09..70070e93c9 100644
--- a/test/ruby/test_io_buffer.rb
+++ b/test/ruby/test_io_buffer.rb
@@ -330,6 +330,10 @@ class TestIOBuffer < Test::Unit::TestCase
end
def test_read
+ # This is currently a bug in IO:Buffer [#19084] which affects extended
+ # strings. On 32 bit machines, the example below becomes extended, so
+ # we omit this test until the bug is fixed.
+ omit if GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] == 1
io = Tempfile.new
io.write("Hello World")
io.seek(0)
@@ -339,7 +343,7 @@ class TestIOBuffer < Test::Unit::TestCase
assert_equal "Hello", buffer.get_string(0, 5)
ensure
- io.close!
+ io.close! if io
end
def test_write