From c29e8a0271388c9957db1c2b256925ef04cf5bc9 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 17 Apr 2017 23:47:12 +0000 Subject: [PATCH] should not return. * test/ruby/test_settracefunc.rb (test_throwing_return_with_finish_frame): should not use `return`, but should use `next`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_settracefunc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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