diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-06 02:01:36 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-06 02:01:36 +0000 |
| commit | 3241664bc3bf427125dccd9509d64ddb7102cad3 (patch) | |
| tree | e4f05314f5ff36411aad0c2ccf0460eb5ae86533 /test/ruby | |
| parent | d10ef54c60704422ffac45bbb663e57ffdea0ee6 (diff) | |
* 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
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_settracefunc.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 756a0acf3d..b0db91136f 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -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 |
