1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-05-28 04:20:31 +00:00
parent bd77dbc37a
commit bd50aaf618

View file

@ -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