[前][次][番号順一覧][スレッド一覧]

ruby-changes:42300

From: naruse <ko1@a...>
Date: Tue, 29 Mar 2016 16:01:17 +0900 (JST)
Subject: [ruby-changes:42300] naruse:r54374 (ruby_2_3): merge revision(s) 54005: [Backport #12150]

naruse	2016-03-29 16:01:12 +0900 (Tue, 29 Mar 2016)

  New Revision: 54374

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54374

  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_3/
  Modified files:
    branches/ruby_2_3/ChangeLog
    branches/ruby_2_3/test/socket/test_addrinfo.rb
    branches/ruby_2_3/version.h
Index: ruby_2_3/ChangeLog
===================================================================
--- ruby_2_3/ChangeLog	(revision 54373)
+++ ruby_2_3/ChangeLog	(revision 54374)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1
+Tue Mar 29 15:58:18 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.
+
 Tue Mar 29 15:31:06 2016  Rei Odaira  <Rei.Odaira@g...>
 
 	* test/rinda/test_rinda.rb (test_make_socket_ipv4_multicast):
Index: ruby_2_3/version.h
===================================================================
--- ruby_2_3/version.h	(revision 54373)
+++ ruby_2_3/version.h	(revision 54374)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1
 #define RUBY_VERSION "2.3.0"
 #define RUBY_RELEASE_DATE "2016-03-29"
-#define RUBY_PATCHLEVEL 31
+#define RUBY_PATCHLEVEL 32
 
 #define RUBY_RELEASE_YEAR 2016
 #define RUBY_RELEASE_MONTH 3
Index: ruby_2_3/test/socket/test_addrinfo.rb
===================================================================
--- ruby_2_3/test/socket/test_addrinfo.rb	(revision 54373)
+++ ruby_2_3/test/socket/test_addrinfo.rb	(revision 54374)
@@ -544,7 +544,14 @@ class TestSocketAddrinfo < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/ruby_2_3/test/socket/test_addrinfo.rb#L544
 	    # 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_3
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r54005


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]