diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-11-07 15:51:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-11-07 15:54:40 +0900 |
commit | ee86b57ee5df34390ba1d20343593adf8331c010 (patch) | |
tree | 9d29f65421a0a3ef987282d0b44f9a08faddb0dc /spec/ruby/optional | |
parent | b02b8e77562661865b380d78e7621edfd8149a8f (diff) |
Revert jobserver handling in spec
Diffstat (limited to 'spec/ruby/optional')
-rw-r--r-- | spec/ruby/optional/capi/spec_helper.rb | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/ruby/optional/capi/spec_helper.rb b/spec/ruby/optional/capi/spec_helper.rb index 9c85751974..ec6b909397 100644 --- a/spec/ruby/optional/capi/spec_helper.rb +++ b/spec/ruby/optional/capi/spec_helper.rb @@ -113,20 +113,12 @@ def setup_make end opts = {} - if /(?:\A|\s)--jobserver-(?:auth|fds)=(?:(\d+),(\d+)|fifo:((?:\\.|\S)+))/ =~ make_flags + if /(?:\A|\s)--jobserver-(?:auth|fds)=(\d+),(\d+)/ =~ make_flags begin - if fifo = $3 - fifo.gsub!(/\\(?=.)/, '') - r = File.open(fifo, IO::RDONLY|IO::NONBLOCK|IO::BINARY) - w = File.open(fifo, IO::WRONLY|IO::NONBLOCK|IO::BINARY) - else - r = IO.for_fd($1.to_i(10), "rb", autoclose: false) - w = IO.for_fd($2.to_i(10), "wb", autoclose: false) - end + r = IO.for_fd($1.to_i(10), "rb", autoclose: false) + w = IO.for_fd($2.to_i(10), "wb", autoclose: false) rescue Errno::EBADF else - r.close_on_exec = true - w.close_on_exec = true opts[r] = r opts[w] = w end |