mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_trace.c: prohibit to specify normal events and internal events
simultaneously. I will introduce special care for internal events later. * ext/-test-/tracepoint/tracepoint.c: test this behavior. * test/-ext-/tracepoint/test_tracepoint.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
079009fb93
commit
5b40cb6a2c
5 changed files with 32 additions and 1 deletions
|
|
@ -50,4 +50,8 @@ class TestTracepointObj < Test::Unit::TestCase
|
|||
assert_operator gc_start_count, :>=, gc_end_count
|
||||
assert_operator stat2[:count] - stat1[:count] - 1, :<=, gc_end_count
|
||||
end
|
||||
|
||||
def test_tracepoint_specify_normal_and_internal_events
|
||||
assert_raise(TypeError){ Bug.tracepoint_specify_normal_and_internal_events }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue