[前][次][番号順一覧][スレッド一覧]

ruby-changes:54115

From: normal <ko1@a...>
Date: Tue, 11 Dec 2018 18:49:36 +0900 (JST)
Subject: [ruby-changes:54115] normal:r66336 (trunk): test/dtrace: use TracePoint.__enable

normal	2018-12-11 18:49:31 +0900 (Tue, 11 Dec 2018)

  New Revision: 66336

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66336

  Log:
    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.

  Modified files:
    trunk/test/dtrace/test_function_entry.rb
    trunk/test/dtrace/test_singleton_function.rb
Index: test/dtrace/test_function_entry.rb
===================================================================
--- test/dtrace/test_function_entry.rb	(revision 66335)
+++ test/dtrace/test_function_entry.rb	(revision 66336)
@@ -77,7 +77,7 @@ ruby$target:::method-return https://github.com/ruby/ruby/blob/trunk/test/dtrace/test_function_entry.rb#L77
     private
     def ruby_program
       <<-eoruby
-      TracePoint.new{}.enable
+      TracePoint.new{}.__enable(nil, nil)
       class Foo
 	def foo; end
       end
Index: test/dtrace/test_singleton_function.rb
===================================================================
--- test/dtrace/test_singleton_function.rb	(revision 66335)
+++ test/dtrace/test_singleton_function.rb	(revision 66336)
@@ -46,7 +46,7 @@ ruby$target:::method-return https://github.com/ruby/ruby/blob/trunk/test/dtrace/test_singleton_function.rb#L46
 
     def ruby_program
       <<-eoruby
-      TracePoint.new{}.enable
+      TracePoint.new{}.__enable(nil, nil)
       class Foo
 	def self.foo; end
       end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]