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:
parent
442b77e721
commit
34b2e084e6
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue