From bd50aaf618a04184ff9e6542f0a4fa1213c006ee Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 May 2014 04:20:31 +0000 Subject: [PATCH] envutil.rb: connect caller to backtrace * test/ruby/envutil.rb (assert_separately): append current caller to backtrace show proper method name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/envutil.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb index c331847f46..dd72daf477 100644 --- a/test/ruby/envutil.rb +++ b/test/ruby/envutil.rb @@ -373,6 +373,9 @@ eom bt.each do |l| l.sub!(/\A-:(\d+)/){"#{file}:#{line + $1.to_i}"} end + bt.concat(caller) + else + res.set_backtrace(caller) end raise res end