summaryrefslogtreecommitdiff
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
commit183c1a0fa1c9599f613ea8f4c54ed5229354714f (patch)
tree4735cdc42cfe36e6691b0c9f6ad17c302ff31f6c
parent3e92b635fb5422207b7bbdc924e292e51e21f040 (diff)
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
-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 6a319c3..1e12d18 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"))