From 21fcb1c3a19bf6b330aebf14f4c915c0d63925d6 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 7 May 2011 14:52:54 +0000 Subject: * test/ruby/test_io.rb (TestIO#test_readpartial_lock), (TestIO#test_read_lock): get rid of GVL fairness problem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 07308a07ce..9171dc6a31 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -904,7 +904,7 @@ class TestIO < Test::Unit::TestCase with_pipe do |r, w| s = "" t = Thread.new { r.readpartial(5, s) } - 0 until s.size == 5 + Thread.pass until s.size == 5 assert_raise(RuntimeError) { s.clear } w.write "foobarbaz" w.close @@ -939,7 +939,7 @@ class TestIO < Test::Unit::TestCase with_pipe do |r, w| s = "" t = Thread.new { r.read(5, s) } - 0 until s.size == 5 + Thread.pass until s.size == 5 assert_raise(RuntimeError) { s.clear } w.write "foobarbaz" w.close -- cgit v1.2.3