ruby-changes:42192
From: usa <ko1@a...>
Date: Fri, 25 Mar 2016 17:34:09 +0900 (JST)
Subject: [ruby-changes:42192] usa:r54266 (ruby_2_1): merge revision(s) 54005: [Backport #12150]
usa 2016-03-25 17:34:04 +0900 (Fri, 25 Mar 2016) New Revision: 54266 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54266 Log: merge revision(s) 54005: [Backport #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. Modified directories: branches/ruby_2_1/ Modified files: branches/ruby_2_1/ChangeLog branches/ruby_2_1/test/socket/test_addrinfo.rb branches/ruby_2_1/version.h Index: ruby_2_1/version.h =================================================================== --- ruby_2_1/version.h (revision 54265) +++ ruby_2_1/version.h (revision 54266) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1 #define RUBY_VERSION "2.1.9" #define RUBY_RELEASE_DATE "2016-03-25" -#define RUBY_PATCHLEVEL 463 +#define RUBY_PATCHLEVEL 464 #define RUBY_RELEASE_YEAR 2016 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_1/ChangeLog =================================================================== --- ruby_2_1/ChangeLog (revision 54265) +++ ruby_2_1/ChangeLog (revision 54266) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1 +Fri Mar 25 17:33:52 2016 Rei Odaira <Rei.Odaira@g...> + + * 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. + Fri Mar 25 17:32:34 2016 Rei Odaira <Rei.Odaira@g...> * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_lock): skip Index: ruby_2_1/test/socket/test_addrinfo.rb =================================================================== --- ruby_2_1/test/socket/test_addrinfo.rb (revision 54265) +++ ruby_2_1/test/socket/test_addrinfo.rb (revision 54266) @@ -543,7 +543,14 @@ class TestSocketAddrinfo < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/ruby_2_1/test/socket/test_addrinfo.rb#L543 # 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) Property changes on: ruby_2_1 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r54005 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/