mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/socket/test_addrinfo.rb (test_ipv6_address_predicates):
IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED are broken on AIX, so skip related tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1874524d42
commit
bf5d2c74c9
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Mar 5 09:50:58 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
||||
|
||||
* test/socket/test_addrinfo.rb (test_ipv6_address_predicates):
|
||||
IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED are broken
|
||||
on AIX, so skip related tests.
|
||||
|
||||
Sat Mar 5 09:17:54 2016 Rei Odaira <Rei.Odaira@gmail.com>
|
||||
|
||||
* test/rinda/test_rinda.rb (test_make_socket_ipv4_multicast):
|
||||
|
|
|
@ -544,7 +544,14 @@ class TestSocketAddrinfo < Test::Unit::TestCase
|
|||
# MacOS X returns IPv4 address for ::ffff:1.2.3.4 and ::1.2.3.4.
|
||||
# Solaris returns IPv4 address for ::ffff:1.2.3.4.
|
||||
ai = ipv6(addr)
|
||||
assert(ai.ipv4? || ai.send(meth), "ai=#{addr_exp}; ai.ipv4? || .#{meth}")
|
||||
begin
|
||||
assert(ai.ipv4? || ai.send(meth), "ai=#{addr_exp}; ai.ipv4? || .#{meth}")
|
||||
rescue Minitest::Assertion
|
||||
if /aix/ =~ RUBY_PLATFORM
|
||||
skip "Known bug in IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED on AIX"
|
||||
end
|
||||
raise $!
|
||||
end
|
||||
else
|
||||
assert(ipv6(addr).send(meth), "#{addr_exp}.#{meth}")
|
||||
assert_equal(addr, ipv6(addr).ip_address)
|
||||
|
|
Loading…
Reference in a new issue