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:
parent
bd77dbc37a
commit
bd50aaf618
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue