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

ruby-changes:45451

From: nobu <ko1@a...>
Date: Sat, 4 Feb 2017 11:17:41 +0900 (JST)
Subject: [ruby-changes:45451] nobu:r57524 (trunk): test/unit.rb: initialize instance variable

nobu	2017-02-04 11:17:35 +0900 (Sat, 04 Feb 2017)

  New Revision: 57524

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

  Log:
    test/unit.rb: initialize instance variable
    
    * test/lib/test/unit.rb (Test::Unit::Parallel#non_options):
      initialize @jobserver instance variable to suppress warnings.

  Modified files:
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 57523)
+++ test/lib/test/unit.rb	(revision 57524)
@@ -135,6 +135,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L135
       end
 
       def non_options(files, options)
+        @jobserver = nil
         if !options[:parallel] and
           /(?:\A|\s)--jobserver-auth=(\d+),(\d+)/ =~ ENV["MAKEFLAGS"]
           begin

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

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