зеркало из https://github.com/github/ruby.git
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:
Родитель
23206859bc
Коммит
931cc441e5
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче