summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 09:49:31 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-11 09:49:31 +0000
commit0046a4a5194797214365636465c990be7ce2d355 (patch)
tree9976f4c243194afec439720c68e9b06edb927ba6 /test
parent349f6a3275abb0b59d35df44c3d786a4af58449e (diff)
test/dtrace: use TracePoint.__enable
"TracePoint.enable" is implemented in prelude.rb since r66003 / commit 96990203b71184003cf8a9bad5cc177645820fd4 and not available in miniruby. I tried using regular "ruby" for testing, but it proved noisy and caused test failures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/dtrace/test_function_entry.rb2
-rw-r--r--test/dtrace/test_singleton_function.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/dtrace/test_function_entry.rb b/test/dtrace/test_function_entry.rb
index 0030560d54..8050f91402 100644
--- a/test/dtrace/test_function_entry.rb
+++ b/test/dtrace/test_function_entry.rb
@@ -77,7 +77,7 @@ ruby$target:::method-return
private
def ruby_program
<<-eoruby
- TracePoint.new{}.enable
+ TracePoint.new{}.__enable(nil, nil)
class Foo
def foo; end
end
diff --git a/test/dtrace/test_singleton_function.rb b/test/dtrace/test_singleton_function.rb
index ef1381a321..11fe80599d 100644
--- a/test/dtrace/test_singleton_function.rb
+++ b/test/dtrace/test_singleton_function.rb
@@ -46,7 +46,7 @@ ruby$target:::method-return
def ruby_program
<<-eoruby
- TracePoint.new{}.enable
+ TracePoint.new{}.__enable(nil, nil)
class Foo
def self.foo; end
end