1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-05-28 05:11:05 +00:00
parent e3adb1d647
commit 391cad0cb3

View file

@ -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.