diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 05:11:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-28 05:11:05 +0000 |
commit | 391cad0cb3ffed75da78b034d347cbe5b9405a58 (patch) | |
tree | 3285cce60f2d7cdfa65697f555ca7ef17283ca1a /test | |
parent | e3adb1d647b4f848e3e9f43826205789c9ce921d (diff) | |
download | ruby-391cad0cb3ffed75da78b034d347cbe5b9405a58.tar.gz |
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')
-rw-r--r-- | test/socket/test_socket.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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. |