ruby-changes:63368
From: Yusuke <ko1@a...>
Date: Sat, 17 Oct 2020 15:33:24 +0900 (JST)
Subject: [ruby-changes:63368] 09dd9d8e5d (master): Revert "test/rinda/test_rinda.rb: try debugging TestRingServer#test_do_reply"
https://git.ruby-lang.org/ruby.git/commit/?id=09dd9d8e5d From 09dd9d8e5da29f8dfa1c78553950f9469d7291e6 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 17 Oct 2020 15:32:40 +0900 Subject: Revert "test/rinda/test_rinda.rb: try debugging TestRingServer#test_do_reply" This reverts commit de5e8d0e3bc3cc39487ffc9d9c15642b6881cd54. Remove the debugging code that is no longer needed diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 6a022e6..cd594b3 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -620,7 +620,6 @@ end https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L620 class TestRingServer < Test::Unit::TestCase def setup - @aoe_back = Thread.abort_on_exception @port = Rinda::Ring_PORT @ts = Rinda::TupleSpace.new @@ -628,7 +627,6 @@ class TestRingServer < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L627 @server = DRb.start_service("druby://localhost:0") end def teardown - Thread.abort_on_exception = @aoe_back @rs.shutdown # implementation-dependent @ts.instance_eval{ @@ -802,12 +800,7 @@ class TestRingServer < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L800 tl = nil th = Thread.new(Thread.current) do |mth| sleep n - puts "...timeout! Show the backtraces of all living threads" - (tl = Thread.list - tl0).each_with_index do |t, i| - puts "Thread #{ i }: #{ t.inspect }", *t.backtrace, "" - t.raise(Timeout::Error) - end - puts "and then raise Timeout::Error to the main thread" + (tl = Thread.list - tl0).each {|t|t.raise(Timeout::Error)} mth.raise(Timeout::Error) end tl0 << th -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/