diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-05 21:19:45 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-05 21:19:45 +0000 |
commit | bd80fc53159f4ada3549b6f85209af13be375095 (patch) | |
tree | ec6c603535b13d96542ea77a758702ff20ef72bd /test/dtrace/test_function_entry.rb | |
parent | ca9cf0e076645745b0e6c67561dc9a293e08fae2 (diff) | |
download | ruby-bd80fc53159f4ada3549b6f85209af13be375095.tar.gz |
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
Diffstat (limited to 'test/dtrace/test_function_entry.rb')
-rw-r--r-- | test/dtrace/test_function_entry.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dtrace/test_function_entry.rb b/test/dtrace/test_function_entry.rb index fc07ccc455..2fac424fe4 100644 --- a/test/dtrace/test_function_entry.rb +++ b/test/dtrace/test_function_entry.rb @@ -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 |