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

ruby-changes:34123

From: nobu <ko1@a...>
Date: Wed, 28 May 2014 14:11:16 +0900 (JST)
Subject: [ruby-changes:34123] nobu:r46204 (trunk): test_socket.rb: ignore interface without address

nobu	2014-05-28 14:11:05 +0900 (Wed, 28 May 2014)

  New Revision: 46204

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46204

  Log:
    test_socket.rb: ignore interface without address
    
    * test/socket/test_socket.rb (test_udp_server): ignore interface
      with no address assigned.

  Modified files:
    trunk/test/socket/test_socket.rb
Index: test/socket/test_socket.rb
===================================================================
--- test/socket/test_socket.rb	(revision 46203)
+++ test/socket/test_socket.rb	(revision 46204)
@@ -329,6 +329,7 @@ class TestSocket < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/socket/test_socket.rb#L329
       nd6 = {}
       ifaddrs.reject! {|ifa|
         ai = ifa.addr
+        next true unless ai
         s = famlies[ai.afamily]
         next true unless s
         next true if ai.ipv6_linklocal? # IPv6 link-local address is too troublesome in this test.

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

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