diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 14:52:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-07 14:52:54 +0000 |
commit | 21fcb1c3a19bf6b330aebf14f4c915c0d63925d6 (patch) | |
tree | 0e7f9914b39cc7128a42d1380078d0d7da1eb810 | |
parent | 76734388a22c1ffed89e18d916a4215034898b39 (diff) | |
download | ruby-21fcb1c3a19bf6b330aebf14f4c915c0d63925d6.tar.gz |
* 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
-rw-r--r-- | test/ruby/test_io.rb | 4 |
1 files 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 |