diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-17 23:47:12 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-17 23:47:12 +0000 |
commit | 08e9e6e1d8438acbf33aebe72595f55fd0db7f9f (patch) | |
tree | ad61603ebd693302d3ea860a86af3f23810e8251 | |
parent | 770a89e88c9e519d137bb94f0ca17fff3e1993e5 (diff) | |
download | ruby-08e9e6e1d8438acbf33aebe72595f55fd0db7f9f.tar.gz |
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
-rw-r--r-- | test/ruby/test_settracefunc.rb | 2 |
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 |