summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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