ruby-changes:34117
From: nobu <ko1@a...>
Date: Wed, 28 May 2014 13:20:45 +0900 (JST)
Subject: [ruby-changes:34117] nobu:r46198 (trunk): envutil.rb: connect caller to backtrace
nobu 2014-05-28 13:20:31 +0900 (Wed, 28 May 2014) New Revision: 46198 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46198 Log: envutil.rb: connect caller to backtrace * test/ruby/envutil.rb (assert_separately): append current caller to backtrace show proper method name. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 46197) +++ test/ruby/envutil.rb (revision 46198) @@ -373,6 +373,9 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L373 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/