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

ruby-changes:37016

From: nobu <ko1@a...>
Date: Fri, 2 Jan 2015 11:37:52 +0900 (JST)
Subject: [ruby-changes:37016] nobu:r49097 (trunk): tracepointchecker.rb: needs TracePoint

nobu	2015-01-02 11:37:47 +0900 (Fri, 02 Jan 2015)

  New Revision: 49097

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

  Log:
    tracepointchecker.rb: needs TracePoint
    
    * test/lib/tracepointchecker.rb: available only if TracePoint is
      available.

  Modified files:
    trunk/test/lib/tracepointchecker.rb
Index: test/lib/tracepointchecker.rb
===================================================================
--- test/lib/tracepointchecker.rb	(revision 49096)
+++ test/lib/tracepointchecker.rb	(revision 49097)
@@ -109,10 +109,10 @@ module TracePointChecker https://github.com/ruby/ruby/blob/trunk/test/lib/tracepointchecker.rb#L109
       raise "trace #{trace} should not be deactivated" unless trace.enabled?
     }
   end
-end
+end if defined?(TracePoint)
 
 class ::Test::Unit::TestCase
   include TracePointChecker::ZombieTraceHunter
-end
+end if defined?(TracePoint)
 
 # TracePointChecker.start verbose: false

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

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