mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
* 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:
parent
f6a4b06850
commit
f614957d12
2 changed files with 6 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue