diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-01-28 15:15:19 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-01-28 15:23:51 +0900 |
commit | 4df0819c5d8b7d11e3fa1d2ba45fe7da68a0e064 (patch) | |
tree | 91b8f0f4894138a4ad1e70920049ac6ff9cf444d | |
parent | 0f03c1433ef6a17acd64f4dc4a539b4630e975aa (diff) | |
download | ruby-4df0819c5d8b7d11e3fa1d2ba45fe7da68a0e064.tar.gz |
support multi-run for test/ruby/test_settracefunc.rb
need to remove Constants.
-rw-r--r-- | test/ruby/test_settracefunc.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index ada7b7596a..73cf625258 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -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 |