* test/ruby/test_settracefunc.rb: check the target thread.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2014-01-23 11:02:37 +00:00
parent f6a4b06850
commit f614957d12
2 changed files with 6 additions and 0 deletions

View file

@ -1028,6 +1028,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
def test_a_call
events = []
TracePoint.new(:a_call){|tp|
next if !target_thread?
events << tp.event
}.enable{
1.times{
@ -1049,6 +1050,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
def test_a_return
events = []
TracePoint.new(:a_return){|tp|
next if !target_thread?
events << tp.event
}.enable{
1.times{