summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 13:08:59 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-11 13:08:59 +0000
commit975e43b8cb8d4cdd3e4ac126db894d1053cb8a02 (patch)
tree1aca5b5ad7b77e5ff596446f94b70552b3cb8922 /test/rinda
parent26cb14f846006ed4739af1153aae1f87e4678b3e (diff)
* test/rinda/test_rinda.rb: Socket.getifaddrs may returns an interface
which #addr method returns nil for venet0 in OpenVZ. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index e0da835..1577af8 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -533,9 +533,7 @@ end
module RingIPv6
def prepare_ipv6(r)
Socket.getifaddrs.each do |ifaddr|
- p ifaddr
- end
- Socket.getifaddrs.each do |ifaddr|
+ next unless ifaddr.addr
next unless ifaddr.addr.ipv6_linklocal?
next if ifaddr.name[0, 2] == "lo"
r.multicast_interface = ifaddr.ifindex