* 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
This commit is contained in:
nobu 2015-07-30 07:56:20 +00:00
Родитель 2dffc6bba3
Коммит b00ba0a957
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -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