summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-14 18:54:47 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-14 18:54:47 +0000
commit49e1e456dca3a29ce6fcb7acc9d77397d2b08461 (patch)
tree24f8fa5bd55ca3ac5a12ca7c987f10fa760f4438 /test
parentbb5114bc7e59c494af03f973ba89d7747325f371 (diff)
merge revision(s) 56625: [Backport #12936]
* test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast, test_make_socket_ipv6_multicast_hops): skip if IPv6 multicast address is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rinda/test_rinda.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index 0f05abd829..3df4460cb8 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -793,6 +793,8 @@ class TestRingFinger < Test::Unit::TestCase
rescue Errno::EINVAL
# somehow Debian 6.0.7 needs ifname
v6mc = @rf.make_socket("ff02::1%#{ifaddr.name}")
+ rescue Errno::EADDRNOTAVAIL
+ return # IPv6 address for multicast not available
end
assert_equal(1, v6mc.getsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_LOOP).int)
@@ -817,6 +819,8 @@ class TestRingFinger < Test::Unit::TestCase
rescue Errno::EINVAL
# somehow Debian 6.0.7 needs ifname
v6mc = @rf.make_socket("ff02::1%#{ifaddr.name}")
+ rescue Errno::EADDRNOTAVAIL
+ return # IPv6 address for multicast not available
end
assert_equal(2, v6mc.getsockopt(:IPPROTO_IPV6, :IPV6_MULTICAST_HOPS).int)
ensure