From 09063f9d30658da148b2a4dd40ceca7d150e4aa6 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 3 May 2012 22:50:30 +0000 Subject: [PATCH] Embed backtrace to debug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_signal.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 13bb771120..0e3af06d7b 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -207,7 +207,8 @@ th = Thread.new do begin require ARGV[0] ensure - Marshal.dump($!, STDOUT) + err = $! ? [$!, $!.backtrace] : $! + Marshal.dump(err, STDOUT) STDOUT.flush end end