aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 23:47:12 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-04-17 23:47:12 +0000
commit08e9e6e1d8438acbf33aebe72595f55fd0db7f9f (patch)
treead61603ebd693302d3ea860a86af3f23810e8251 /test
parent770a89e88c9e519d137bb94f0ca17fff3e1993e5 (diff)
downloadruby-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
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