summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-31 16:14:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-31 16:32:27 +0900
commitb632566d339968bfd271a07e290a71bbb7f621ec (patch)
tree5a4b860df7b48adb70e53018fe4cd34a029d945d /spec
parentb1aecef87364631b0001dd2aafc432931e19a98f (diff)
UNIX domain socket name length has a certain limit
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/file/fixtures/file_types.rb7
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