ruby-changes:55937
From: Nobuyoshi <ko1@a...>
Date: Fri, 31 May 2019 16:32:53 +0900 (JST)
Subject: [ruby-changes:55937] Nobuyoshi Nakada: b632566d33 (trunk): UNIX domain socket name length has a certain limit
https://git.ruby-lang.org/ruby.git/commit/?id=b632566d33 From b632566d339968bfd271a07e290a71bbb7f621ec Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 31 May 2019 16:14:27 +0900 Subject: UNIX domain socket name length has a certain limit diff --git a/spec/ruby/core/file/fixtures/file_types.rb b/spec/ruby/core/file/fixtures/file_types.rb index a36817f..1dd0752 100644 --- a/spec/ruby/core/file/fixtures/file_types.rb +++ b/spec/ruby/core/file/fixtures/file_types.rb @@ -55,7 +55,12 @@ module FileSpecs https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/file/fixtures/file_types.rb#L55 require 'socket' name = tmp("ftype_socket.socket") rm_r name - socket = UNIXServer.new name + begin + socket = UNIXServer.new name + rescue ArgumentError => error + error.message.should =~ /too long/ + return + end begin yield name ensure -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/