From 391cad0cb3ffed75da78b034d347cbe5b9405a58 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 28 May 2014 05:11:05 +0000 Subject: test_socket.rb: ignore interface without address * test/socket/test_socket.rb (test_udp_server): ignore interface with no address assigned. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_socket.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/socket/test_socket.rb') diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index 0ec65f0595..6e4680cd7f 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -329,6 +329,7 @@ class TestSocket < Test::Unit::TestCase 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. -- cgit v1.2.3