summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index b1e99055a1..b08e0753bf 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -2249,12 +2249,12 @@ End
th = Thread.new {r.sysread(100, buf)}
Thread.pass until th.stop?
buf.replace("")
- assert_empty(buf)
+ assert_empty(buf, bug6099)
w.write(data)
Thread.pass while th.alive?
th.join
end
- assert_equal(data, buf)
+ assert_equal(data, buf, bug6099)
end
def test_readpartial_locktmp
@@ -2267,11 +2267,12 @@ End
th = Thread.new {r.readpartial(100, buf)}
Thread.pass until th.stop?
buf.replace("")
- assert_empty(buf)
+ assert_empty(buf, bug6099)
w.write(data)
Thread.pass while th.alive?
th.join
end
- assert_equal(data, buf)
+ assert_equal(data, buf, bug6099)
+ rescue RuntimeError # can't modify string; temporarily locked
end
end