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

ruby-changes:45468

From: naruse <ko1@a...>
Date: Mon, 6 Feb 2017 01:07:35 +0900 (JST)
Subject: [ruby-changes:45468] naruse:r57541 (trunk): @job_tokens is defined iff @jobserver is true

naruse	2017-02-06 01:07:30 +0900 (Mon, 06 Feb 2017)

  New Revision: 57541

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

  Log:
    @job_tokens is defined iff @jobserver is true

  Modified files:
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 57540)
+++ test/lib/test/unit.rb	(revision 57541)
@@ -458,7 +458,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L458
                 (deal(io, type, result, rep).nil? and
                  !@workers.any? {|x| [:running, :prepare].include? x.status})
             end
-            if @job_tokens and !@tasks.empty? and !@workers.any? {|x| x.status == :ready}
+            if @jobserver and @job_tokens and !@tasks.empty? and !@workers.any? {|x| x.status == :ready}
               t = @jobserver[0].read_nonblock([@tasks.size, @options[:parallel]].min, exception: false)
               if String === t
                 @job_tokens << t

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

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