mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
skip on other threads (again).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
23206859bc
commit
931cc441e5
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
|
||||
def tp_return_value mid
|
||||
ary = []
|
||||
TracePoint.new(:return, :b_return){|tp| ary << [tp.event, tp.method_id, tp.return_value]}.enable{
|
||||
TracePoint.new(:return, :b_return){|tp| next if !target_thread?; ary << [tp.event, tp.method_id, tp.return_value]}.enable{
|
||||
send mid
|
||||
}
|
||||
ary.pop # last b_return event is not required.
|
||||
|
|
Loading…
Add table
Reference in a new issue