mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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/trunk@56625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
493e488974
commit
8a2bd2b7f0
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Nov 6 11:59:05 2016 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* test/rinda/test_rinda.rb (test_make_socket_ipv6_multicast,
|
||||
test_make_socket_ipv6_multicast_hops): skip if IPv6 multicast
|
||||
address is not available.
|
||||
|
||||
Sun Nov 6 11:53:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/irb.rb (Binding#irb): new method like Binding#pry.
|
||||
|
|
|
@ -794,6 +794,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)
|
||||
|
@ -818,6 +820,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue