summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_settracefunc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index bff3b8c75b..076c35d730 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -729,13 +729,13 @@ class TestSetTraceFunc < Test::Unit::TestCase
end
def test_tracepoint_raised_exception
- trace = TracePoint.new(:call, :return){|tp|
+ trace = TracePoint.new(:call, :return, :raise){|tp|
next if !target_thread?
case tp.event
when :call, :return
assert_raise(RuntimeError) { tp.raised_exception }
when :raise
- assert_equal(XYZZYError, tp.raised_exception)
+ assert_kind_of(XYZZYException, tp.raised_exception)
end
}
trace.enable{