1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/unit.rb: show signal

* test/lib/test/unit.rb (Test::Unit::Parallel::Worker#died): show
  terminated signal when a worker died.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-27 23:48:09 +00:00
parent 442b77e721
commit 34b2e084e6

View file

@ -223,6 +223,10 @@ module Test
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