aboutsummaryrefslogtreecommitdiffstats
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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 1ed9072c89..f91922796d 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -827,7 +827,7 @@ class TestIO < Test::Unit::TestCase
def test_ungetc2
f = false
pipe(proc do |w|
- 0 until f
+ Thread.pass until f
w.write("1" * 10000)
w.close
end, proc do |r|