Skip to content

Commit 3930119

Browse files
committed
merge revision(s) 54005: [Backport ruby#12150]
* 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/branches/ruby_2_1@54266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 09298fa commit 3930119

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Fri Mar 25 17:33:52 2016 Rei Odaira <Rei.Odaira@gmail.com>
2+
3+
* test/socket/test_addrinfo.rb (test_ipv6_address_predicates):
4+
IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED are broken
5+
on AIX, so skip related tests.
6+
17
Fri Mar 25 17:32:34 2016 Rei Odaira <Rei.Odaira@gmail.com>
28

39
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_lock): skip

test/socket/test_addrinfo.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,14 @@ def test_ipv6_address_predicates
543543
# MacOS X returns IPv4 address for ::ffff:1.2.3.4 and ::1.2.3.4.
544544
# Solaris returns IPv4 address for ::ffff:1.2.3.4.
545545
ai = ipv6(addr)
546-
assert(ai.ipv4? || ai.send(meth), "ai=#{addr_exp}; ai.ipv4? || .#{meth}")
546+
begin
547+
assert(ai.ipv4? || ai.send(meth), "ai=#{addr_exp}; ai.ipv4? || .#{meth}")
548+
rescue Minitest::Assertion
549+
if /aix/ =~ RUBY_PLATFORM
550+
skip "Known bug in IN6_IS_ADDR_V4COMPAT and IN6_IS_ADDR_V4MAPPED on AIX"
551+
end
552+
raise $!
553+
end
547554
else
548555
assert(ipv6(addr).send(meth), "#{addr_exp}.#{meth}")
549556
assert_equal(addr, ipv6(addr).ip_address)

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.9"
22
#define RUBY_RELEASE_DATE "2016-03-25"
3-
#define RUBY_PATCHLEVEL 463
3+
#define RUBY_PATCHLEVEL 464
44

55
#define RUBY_RELEASE_YEAR 2016
66
#define RUBY_RELEASE_MONTH 3

0 commit comments

Comments
 (0)