mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
support multi-run for test/ruby/test_settracefunc.rb
need to remove Constants.
This commit is contained in:
parent
0f03c1433e
commit
4df0819c5d
1 changed files with 9 additions and 0 deletions
|
@ -137,6 +137,10 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
assert_equal(["c-call", 9, :set_trace_func, Kernel],
|
||||
events.shift)
|
||||
assert_equal([], events)
|
||||
|
||||
self.class.class_eval do
|
||||
remove_const :Foo
|
||||
end
|
||||
end
|
||||
|
||||
def test_return # [ruby-dev:38701]
|
||||
|
@ -362,6 +366,11 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
end
|
||||
assert_equal([], events[:set])
|
||||
assert_equal([], events[:add])
|
||||
|
||||
# cleanup
|
||||
self.class.class_eval do
|
||||
remove_const :ThreadTraceInnerClass
|
||||
end
|
||||
end
|
||||
|
||||
def test_trace_defined_method
|
||||
|
|
Loading…
Add table
Reference in a new issue