ruby-changes:47036
From: ko1 <ko1@a...>
Date: Fri, 23 Jun 2017 14:45:56 +0900 (JST)
Subject: [ruby-changes:47036] ko1:r59151 (trunk): skip on other threads.
ko1 2017-06-23 14:45:50 +0900 (Fri, 23 Jun 2017) New Revision: 59151 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59151 Log: skip on other threads. Modified files: trunk/test/ruby/test_settracefunc.rb Index: test/ruby/test_settracefunc.rb =================================================================== --- test/ruby/test_settracefunc.rb (revision 59150) +++ test/ruby/test_settracefunc.rb (revision 59151) @@ -1605,6 +1605,7 @@ class TestSetTraceFunc < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/ruby/test_settracefunc.rb#L1605 def tp_return_value mid ary = [] TracePoint.new(:return, :b_return){|tp| ary << [tp.event, tp.method_id, tp.return_value]}.enable{ + next if !target_thread? send mid } ary.pop # last b_return event is not required. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/