aboutsummaryrefslogtreecommitdiffstats
path: root/test/lib
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:25:46 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-16 05:25:46 +0000
commitf7ec67468c594e206baa8a9d53ea37936f26d48d (patch)
tree4735cdc42cfe36e6691b0c9f6ad17c302ff31f6c /test/lib
parent54c23ed4007904a361b45a77363f4b9ca2f3d7f5 (diff)
downloadruby-f7ec67468c594e206baa8a9d53ea37936f26d48d.tar.gz
Exception#backtrace may be nil if it is manually created
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit/parallel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/test/unit/parallel.rb b/test/lib/test/unit/parallel.rb
index 6a319c3c3f..1e12d18457 100644
--- a/test/lib/test/unit/parallel.rb
+++ b/test/lib/test/unit/parallel.rb
@@ -139,7 +139,7 @@ module Test
rescue Errno::EPIPE
rescue Exception => e
begin
- trace = e.backtrace
+ trace = e.backtrace || ['unknown method']
err = ["#{trace.shift}: #{e.message} (#{e.class})"] + trace.map{|t| t.prepend("\t") }
_report "bye", Marshal.dump(err.join("\n"))