diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-03 22:50:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-05-03 22:50:30 +0000 |
commit | 09063f9d30658da148b2a4dd40ceca7d150e4aa6 (patch) | |
tree | fe6ba21650ab7a6c9bc33c6921dbcbc5fde7a8fb | |
parent | 8109c530b25eaea436107060e44799169d49a3bb (diff) | |
download | ruby-09063f9d30658da148b2a4dd40ceca7d150e4aa6.tar.gz |
Embed backtrace to debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_signal.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 |