diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-31 16:14:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-31 16:32:27 +0900 |
commit | b632566d339968bfd271a07e290a71bbb7f621ec (patch) | |
tree | 5a4b860df7b48adb70e53018fe4cd34a029d945d /spec/ruby | |
parent | b1aecef87364631b0001dd2aafc432931e19a98f (diff) | |
download | ruby-b632566d339968bfd271a07e290a71bbb7f621ec.tar.gz |
UNIX domain socket name length has a certain limit
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/file/fixtures/file_types.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/ruby/core/file/fixtures/file_types.rb b/spec/ruby/core/file/fixtures/file_types.rb index a36817fb4e..1dd0752f73 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 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 |