diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 05:18:49 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 05:18:49 +0000 |
commit | 54ad3167e8b34af03c3382174ec21e00124d6b4d (patch) | |
tree | ecc753002cf6dc817b5b241b11b1c164bbcc222b /spec/ruby/library/socket/fixtures | |
parent | d7c806c079bbc3f62476f751ba932732092b8f46 (diff) |
tests: support Linux kernels with CONFIG_IPV6=n
Detecting the presence of constants in C headers is insufficient,
as a Linux kernel can be built with CONFIG_IPV6=n
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/fixtures')
-rw-r--r-- | spec/ruby/library/socket/fixtures/classes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/socket/fixtures/classes.rb b/spec/ruby/library/socket/fixtures/classes.rb index 8167b879fd..b73fd0fa4c 100644 --- a/spec/ruby/library/socket/fixtures/classes.rb +++ b/spec/ruby/library/socket/fixtures/classes.rb @@ -50,7 +50,7 @@ module SocketSpecs def self.ipv6_available? @ipv6_available ||= begin server = TCPServer.new('::1', 0) - rescue Errno::EADDRNOTAVAIL, SocketError + rescue Errno::EAFNOSUPPORT, Errno::EADDRNOTAVAIL, SocketError :no else server.close |