* test/socket/test_socket.rb: Ignore IPv6 unique local addresses on OS

X (iCloud Back to my Mac addresses) for test_udp_socket since they do
  not act as loopback addresses.  [Bug #6692]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2012-07-20 00:40:48 +00:00
Родитель 3efea48a70
Коммит f35b1d0633
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Fri Jul 20 09:34:11 2012 Eric Hodel <drbrain@segment7.net>
* test/socket/test_socket.rb: Ignore IPv6 unique local addresses on OS
X (iCloud Back to my Mac addresses) for test_udp_socket since they do
not act as loopback addresses. [Bug #6692]
Fri Jul 20 09:32:14 2012 Eric Hodel <drbrain@segment7.net>
* ext/socket/raddrinfo.c (addrinfo_ipv6_unique_local_p): Added

Просмотреть файл

@ -334,6 +334,8 @@ class TestSocket < Test::Unit::TestCase
end
when /darwin/
if !ai.ipv6?
elsif ai.ipv6_unique_local?
next true # iCloud addresses do not work, see Bug 6692
elsif ifr_name = ai.ip_address[/%(.*)/, 1]
# Mac OS X may sets IFDISABLED as FreeBSD does
ulSIOCGIFFLAGS = 3223349521