summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 05:11:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-28 05:11:05 +0000
commit391cad0cb3ffed75da78b034d347cbe5b9405a58 (patch)
tree3285cce60f2d7cdfa65697f555ca7ef17283ca1a /test/socket
parente3adb1d647b4f848e3e9f43826205789c9ce921d (diff)
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
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_socket.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 0ec65f0..6e4680c 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.