mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
refine message for test_thr_kill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5191ecad6c
commit
dc42e8bbe8
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue