diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-19 02:55:38 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-19 02:55:38 +0000 |
commit | 520647325b996919dd4bbfa7c06791df0532ba09 (patch) | |
tree | e54679df69cc9046e7bc3211576a00ebc6bc9646 | |
parent | 31fd9c1553b4fc9555ff3216bc404a0bbbc07ff9 (diff) | |
download | ruby-520647325b996919dd4bbfa7c06791df0532ba09.tar.gz |
* 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
-rw-r--r-- | test/socket/test_addrinfo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 4c3babdfa8..77ef0ae321 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -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"]) |