From 24c376662401a2d9886d63423ddfb72d697747fb Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 14 Dec 2011 02:26:17 +0000 Subject: 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 --- test/thread/test_queue.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'test/thread') 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 -- cgit v1.2.3