summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 23:48:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 23:48:09 +0000
commit34b2e084e6735e55b795846874e743abfe7ae81b (patch)
tree4be49d35e4ea64d95125dd7508c29e888f949ea7 /test
parent442b77e72166c9c993e3c6663568431123510dec (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/lib/test/unit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index a3333cc..2cd554b 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -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