From 1b2be1f8ca5286a75d9401f96eaec89317353e3e Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 19 Dec 2012 06:31:02 +0000 Subject: Use next in proc instead of break or return git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_settracefunc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/ruby') diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 9894745b6c..f4975cd333 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -694,7 +694,7 @@ class TestSetTraceFunc < Test::Unit::TestCase def test_tracepoint_return_value trace = TracePoint.new(:call, :return){|tp| - break if tp.path != __FILE__ + next if tp.path != __FILE__ case tp.event when :call assert_raise(RuntimeError) {tp.return_value} -- cgit v1.2.3