aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 05:45:50 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-06-23 05:45:50 +0000
commitd985f4a417ec352b1a0da7dfc85db8a07b954366 (patch)
treeab56d6355a09f9d869a23c9136e7ec4871cc3b84
parent03c6297fe8e1f3a06297b32f0ee25440b4b4a214 (diff)
downloadruby-d985f4a417ec352b1a0da7dfc85db8a07b954366.tar.gz
skip on other threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/test_settracefunc.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index 53ee82a229..ae2cfef624 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -1605,6 +1605,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{
+ next if !target_thread?
send mid
}
ary.pop # last b_return event is not required.