From 612ff592ffe01ec8305780f3aae08e01b41c6e04 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 24 Jul 2012 00:42:22 +0000 Subject: [PATCH] Add version check for darwin's bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/socket/test_socket.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb index eef86ea2b9..98d9531a60 100644 --- a/test/socket/test_socket.rb +++ b/test/socket/test_socket.rb @@ -334,8 +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 ai.ipv6_unique_local? && /darwin1[01]\./ =~ RUBY_PLATFORM + 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