ruby-changes:39330
From: nobu <ko1@a...>
Date: Tue, 28 Jul 2015 08:48:17 +0900 (JST)
Subject: [ruby-changes:39330] nobu:r51411 (trunk): test/unit.rb: show signal
nobu 2015-07-28 08:48:09 +0900 (Tue, 28 Jul 2015) New Revision: 51411 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51411 Log: test/unit.rb: show signal * test/lib/test/unit.rb (Test::Unit::Parallel::Worker#died): show terminated signal when a worker died. Modified files: trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 51410) +++ test/lib/test/unit.rb (revision 51411) @@ -223,6 +223,10 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L223 def died(*additional) @status = :quit @io.close + status = $? + if status and status.signaled? + additional[0] ||= SignalException.new(status.termsig) + end call_hook(:dead,*additional) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/