ruby-changes:45490
From: nobu <ko1@a...>
Date: Tue, 7 Feb 2017 17:16:53 +0900 (JST)
Subject: [ruby-changes:45490] nobu:r57563 (trunk): test/unit.rb: old GNU make
nobu 2017-02-07 17:16:50 +0900 (Tue, 07 Feb 2017) New Revision: 57563 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57563 Log: test/unit.rb: old GNU make * test/lib/test/unit.rb (Test::Unit::Parallel#non_options): support old GNU make, which uses --jobserver-fds option instead of --jobserver-auth. Modified files: trunk/test/lib/test/unit.rb Index: test/lib/test/unit.rb =================================================================== --- test/lib/test/unit.rb (revision 57562) +++ test/lib/test/unit.rb (revision 57563) @@ -140,7 +140,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L140 def non_options(files, options) @jobserver = nil if !options[:parallel] and - /(?:\A|\s)--jobserver-auth=(\d+),(\d+)/ =~ ENV["MAKEFLAGS"] + /(?:\A|\s)--jobserver-(?:auth|fds)=(\d+),(\d+)/ =~ ENV["MAKEFLAGS"] begin r = IO.for_fd($1.to_i(10), "rb", autoclose: false) w = IO.for_fd($2.to_i(10), "wb", autoclose: false) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/