mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
* eval.c (rb_raise_jump): pop frame after setup exception.
Patches by deivid (David Rodriguez). [Bug #8886] * test/minitest/test_minitest_unit.rb: catch up this change. * test/ruby/test_backtrace.rb: ditto. * test/ruby/test_settracefunc.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d4ceaaa14
commit
a4cbd6412a
5 changed files with 21 additions and 5 deletions
|
@ -257,7 +257,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
events.shift)
|
||||
assert_equal(["c-return", 5, :backtrace, Exception],
|
||||
events.shift)
|
||||
assert_equal(["raise", 5, :test_raise, TestSetTraceFunc],
|
||||
assert_equal(["raise", 5, :raise, Kernel],
|
||||
events.shift)
|
||||
assert_equal(["c-return", 5, :raise, Kernel],
|
||||
events.shift)
|
||||
|
@ -517,7 +517,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
[:c_return,20, "xyzzy", Exception, :exception, RuntimeError, :outer, raised_exc],
|
||||
[:c_call, 20, "xyzzy", Exception, :backtrace, raised_exc, :outer, :nothing],
|
||||
[:c_return,20, "xyzzy", Exception, :backtrace, raised_exc, :outer, nil],
|
||||
[:raise, 20, "xyzzy", TestSetTraceFunc, :trace_by_tracepoint, self, :outer, raised_exc],
|
||||
[:raise, 20, "xyzzy", Kernel, :raise, self, :outer, raised_exc],
|
||||
[:c_return,20, "xyzzy", Kernel, :raise, self, :outer, nil],
|
||||
[:c_call, 20, "xyzzy", Module, :===, RuntimeError,:outer, :nothing],
|
||||
[:c_return,20, "xyzzy", Module, :===, RuntimeError,:outer, true],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue