diff options
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index fab142a5ee..a3252d88b7 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2853,6 +2853,7 @@ End bug6099 = '[ruby-dev:45297]' buf = " " * 100 data = "a" * 100 + th = nil with_pipe do |r,w| r.fcntl(Fcntl::F_SETFL, Fcntl::O_NONBLOCK) th = Thread.new {r.readpartial(100, buf)} @@ -2865,6 +2866,8 @@ End end assert_equal(data, buf, bug6099) rescue RuntimeError # can't modify string; temporarily locked + ensure + th.join if th end def test_advise_pipe |