summaryrefslogtreecommitdiff
path: root/test/thread
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-23 07:55:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-23 07:55:39 +0000
commitdc42e8bbe89fe194805a1371276edaf83ec069c2 (patch)
tree9944727dee080bd93054a8b01b54680478ea7132 /test/thread
parent5191ecad6c4deb8d52391661377b91c8613830de (diff)
refine message for test_thr_kill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/thread')
-rw-r--r--test/thread/test_queue.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb
index 4f3eff0..c9b643d 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