mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/socket/test_addrinfo.rb: ipaddr.rb defines Socket::AF_INET6 as an Object
if the constant is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
31fd9c1553
commit
520647325b
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
|
|||
assert_equal(ai1.canonname, ai2.canonname)
|
||||
end
|
||||
|
||||
if Socket.const_defined?("AF_INET6")
|
||||
if Socket.const_defined?("AF_INET6") && Socket::AF_INET6.is_a?(Integer)
|
||||
|
||||
def test_addrinfo_new_inet6
|
||||
ai = Addrinfo.new(["AF_INET6", 42304, "ip6-localhost", "::1"])
|
||||
|
|
Loading…
Reference in a new issue