aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_settracefunc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb
index a428aa9602..53ee82a229 100644
--- a/test/ruby/test_settracefunc.rb
+++ b/test/ruby/test_settracefunc.rb
@@ -1429,7 +1429,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
evs = []
TracePoint.new(:call, :return){|tp|
- return if Thread.current != target_th
+ next unless target_thread?
evs << tp.event
}.enable{
Bug10724.new