summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-24 00:42:22 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-24 00:42:22 +0000
commit612ff592ffe01ec8305780f3aae08e01b41c6e04 (patch)
tree0d04c1336b4adf88c2b3814b6d8a5df4cc74b11a /test/socket
parent505c4eae3220b3af74c91d8b6af0c3f2480fb85e (diff)
Add version check for darwin's bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_socket.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index eef86ea..98d9531 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