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 | c29e8a0271388c9957db1c2b256925ef04cf5bc9 (patch) | |
tree | ad61603ebd693302d3ea860a86af3f23810e8251 | |
parent | cc68af3d026a3ece1dd890fd3510ed9c26660bc6 (diff) | |
download | ruby-c29e8a0271388c9957db1c2b256925ef04cf5bc9.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 |