mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (call_trace_func): remove the trace hook if any exception
raised. [ruby-list:46515] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d10ef54c60
commit
3241664bc3
3 changed files with 15 additions and 1 deletions
|
@ -135,4 +135,9 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
assert_equal(["c-call", 131, :set_trace_func, Kernel], events.shift)
|
||||
assert_equal([], events)
|
||||
end
|
||||
|
||||
def test_bad_trace
|
||||
e = Class.new(RuntimeError)
|
||||
assert_raise(e) {set_trace_func proc{raise e}}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue