Skip to content

Commit 9c475c9

Browse files
committed
catch ipv6 multicast failures
1 parent 095dcd6 commit 9c475c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/rinda/test_rinda.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ def test_make_socket_ipv6_multicast
620620
v6mc = @rs.make_socket('ff02::1')
621621
rescue Errno::EADDRNOTAVAIL
622622
return # IPv6 address for multicast not available
623+
rescue Errno::ENODEV
624+
return # no multicast (http://www-mice.cs.ucl.ac.uk/multimedia/software/documentation/ipv6.html#mroute)
623625
end
624626

625627
if Socket.const_defined?(:SO_REUSEPORT) then
@@ -654,6 +656,8 @@ def test_ring_server_ipv6_multicast
654656
@rs = Rinda::RingServer.new(@ts, [['ff02::1', '::1', 0]], @port)
655657
rescue Errno::EADDRNOTAVAIL
656658
return # IPv6 address for multicast not available
659+
rescue Errno::ENODEV
660+
return # no multicast (http://www-mice.cs.ucl.ac.uk/multimedia/software/documentation/ipv6.html#mroute)
657661
end
658662

659663
v6mc = @rs.instance_variable_get('@sockets').first

0 commit comments

Comments
 (0)