зеркало из https://github.com/github/ruby.git
test_rinda.rb: hungup investigation
* test/rinda/test_rinda.rb (test_do_reply): abort on exception to investigate sporadic hungups on rubyci. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b1244684f8
Коммит
43d52687ba
|
@ -559,6 +559,8 @@ class TestRingServer < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_do_reply
|
||||
aoe = Thread.abort_on_exception
|
||||
Thread.abort_on_exception = true
|
||||
tl0 = Thread.list
|
||||
tl = nil
|
||||
th = Thread.new(Thread.current) do |mth|
|
||||
|
@ -604,6 +606,7 @@ class TestRingServer < Test::Unit::TestCase
|
|||
raise Timeout::Error, "timeout", bt
|
||||
ensure
|
||||
th.kill if th
|
||||
Thread.abort_on_exception = aoe
|
||||
end
|
||||
|
||||
def test_do_reply_local
|
||||
|
|
Загрузка…
Ссылка в новой задаче