diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-19 06:31:02 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-19 06:31:02 +0000 |
commit | 1b2be1f8ca5286a75d9401f96eaec89317353e3e (patch) | |
tree | 0e1fa79f7f49cc1f41a7ee2af076b17540d53f58 /test/ruby/test_settracefunc.rb | |
parent | 2c0d2db5cb8f63e9b1e2c2ff776a8d26d510e49f (diff) | |
download | ruby-1b2be1f8ca5286a75d9401f96eaec89317353e3e.tar.gz |
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
Diffstat (limited to 'test/ruby/test_settracefunc.rb')
-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 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} |