diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-30 07:56:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-30 07:56:20 +0000 |
commit | 6cb51748d6c4a407009110d9514f6b168df2a0c1 (patch) | |
tree | 517162d161a9dcba3d3c300147e2b6a415a40805 /test/ruby | |
parent | d7ef6b5556cc4d6c0cd52259d079c1e406673bfd (diff) | |
download | ruby-6cb51748d6c4a407009110d9514f6b168df2a0c1.tar.gz |
test_settracefunc.rb: refine
* test/ruby/test_settracefunc.rb (test_isolated_raise_in_trace):
check outputs.
* test/ruby/test_settracefunc.rb (test_recursive): method name
which is internally called by TracePoint is now skipped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_settracefunc.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/ruby/test_settracefunc.rb b/test/ruby/test_settracefunc.rb index 1dcd2ccbee..916705f7c8 100644 --- a/test/ruby/test_settracefunc.rb +++ b/test/ruby/test_settracefunc.rb @@ -1040,7 +1040,7 @@ class TestSetTraceFunc < Test::Unit::TestCase def test_isolated_raise_in_trace bug9088 = '[ruby-dev:47793] [Bug #9088]' - assert_ruby_status([], <<-END, bug9088) + assert_in_out_err([], <<-END, [], [], bug9088) set_trace_func proc {raise rescue nil} 1.times {break} END @@ -1212,16 +1212,13 @@ class TestSetTraceFunc < Test::Unit::TestCase end def test_recursive - assert_ruby_status [], %q{ - stack = [] + assert_in_out_err([], %q{\ TracePoint.new(:c_call){|tp| - p 2 - stack << tp.method_id + p tp.method_id }.enable{ p 1 } - raise if stack != [:p, :hash, :inspect] - }, '[Bug #9940]' + }, %w[:p :inspect 1], [], '[Bug #9940]') end def method_prefix event |