From dc42e8bbe89fe194805a1371276edaf83ec069c2 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 23 Dec 2011 07:55:39 +0000 Subject: refine message for test_thr_kill. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/thread/test_queue.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/thread/test_queue.rb') diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb index 4f3eff00a0..c9b643dbf5 100644 --- a/test/thread/test_queue.rb +++ b/test/thread/test_queue.rb @@ -60,11 +60,11 @@ class TestQueue < Test::Unit::TestCase bug5343 = '[ruby-core:39634]' Dir.mktmpdir {|d| timeout = 20 - total_loop = 2000 + total_count = 2000 begin assert_normal_exit(<<-"_eom", bug5343, {:timeout => timeout, :chdir=>d}) require "thread" - #{total_loop}.times do |i| + #{total_count}.times do |i| open("test_thr_kill_count", "w") {|f| f.puts i } queue = Queue.new r, w = IO.pipe @@ -78,7 +78,7 @@ class TestQueue < Test::Unit::TestCase _eom rescue Timeout::Error count = File.read("#{d}/test_thr_kill_count").to_i - flunk "only #{count} times looped in #{timeout} seconds. (should run #{total_loop} times)" + flunk "only #{count}/#{total_count} done in #{timeout} seconds." end } end -- cgit v1.2.3