diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-14 02:26:17 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-12-14 02:26:17 +0000 |
commit | 24c376662401a2d9886d63423ddfb72d697747fb (patch) | |
tree | 2e60974fc7a8915654b456570080b358de78bb34 /test | |
parent | f2fff83e96fe5faea36354993602195881ee8ba3 (diff) | |
download | ruby-24c376662401a2d9886d63423ddfb72d697747fb.tar.gz |
The test added in r34034 needs to run thousands of times.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/thread/test_queue.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb index 1dfcd075fa..9d2f22ff56 100644 --- a/test/thread/test_queue.rb +++ b/test/thread/test_queue.rb @@ -58,16 +58,17 @@ class TestQueue < Test::Unit::TestCase def test_thr_kill bug5343 = '[ruby-core:39634]' assert_normal_exit(<<-'_eom', bug5343) - require "thread" - queue = Queue.new - r, w = IO.pipe - th = Thread.start { - queue.push(nil) - r.read 1 - } - queue.pop - th.kill.join + 2000.times do + require "thread" + queue = Queue.new + r, w = IO.pipe + th = Thread.start { + queue.push(nil) + r.read 1 + } + queue.pop + th.kill.join + end _eom end - end |