diff options
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 95c62874a6..877f95658d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -869,7 +869,8 @@ class TestIO < Test::Unit::TestCase s1.close IO.select([s2]) Process.kill(:USR1, Process.ppid) - s2.read + buf = String.new(capacity: 16384) + nil while s2.read(16384, buf) end s2.close nr.times do |