зеркало из https://github.com/github/ruby.git
test/dtrace: enable Tracepoint for function calls
Since [Feature #14104], "trace" instructions are no longer emitted by default, so we must enable them explicitly for function tracing to work. [ruby-core:85965] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ca9cf0e076
Коммит
bd80fc5315
|
@ -18,7 +18,7 @@ ruby$target:::method-entry
|
|||
}
|
||||
|
||||
assert_equal 10, foo_calls.length
|
||||
line = '2'
|
||||
line = '3'
|
||||
foo_calls.each { |f| assert_equal line, f[3] }
|
||||
foo_calls.each { |f| assert_equal rb_file, f[2] }
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ ruby$target:::method-return
|
|||
}
|
||||
|
||||
assert_equal 10, foo_calls.length
|
||||
line = '2'
|
||||
line = '3'
|
||||
foo_calls.each { |f| assert_equal line, f[3] }
|
||||
foo_calls.each { |f| assert_equal rb_file, f[2] }
|
||||
}
|
||||
|
@ -77,6 +77,7 @@ ruby$target:::method-return
|
|||
private
|
||||
def ruby_program
|
||||
<<-eoruby
|
||||
TracePoint.new{}.enable
|
||||
class Foo
|
||||
def foo; end
|
||||
end
|
||||
|
|
|
@ -18,7 +18,7 @@ ruby$target:::method-entry
|
|||
}
|
||||
|
||||
assert_equal 10, foo_calls.length
|
||||
line = '2'
|
||||
line = '3'
|
||||
foo_calls.each { |f| assert_equal line, f[3] }
|
||||
foo_calls.each { |f| assert_equal rb_file, f[2] }
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ ruby$target:::method-return
|
|||
}
|
||||
|
||||
assert_equal 10, foo_calls.length
|
||||
line = '2'
|
||||
line = '3'
|
||||
foo_calls.each { |f| assert_equal line, f[3] }
|
||||
foo_calls.each { |f| assert_equal rb_file, f[2] }
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ ruby$target:::method-return
|
|||
|
||||
def ruby_program
|
||||
<<-eoruby
|
||||
TracePoint.new{}.enable
|
||||
class Foo
|
||||
def self.foo; end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче