mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
b1244684f8
commit
43d52687ba
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue