summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-07 23:04:20 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-01-07 23:04:20 +0000
commit6e9a14aabeceb169c789ee56647a047834267b5d (patch)
tree2c5bec7f97b2b7dc1c3616f702a7922c960c4e9a /test
parent0713603b6f87473dfcb4c9cec16f6ccebd5e8706 (diff)
Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
sendmsg with pktinfo for link-local ipv6 addresses git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/socket/test_socket.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 6769576bab..2dfc08a34c 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -322,6 +322,12 @@ class TestSocket < Test::Unit::TestCase
}
ip_addrs.each {|ai|
+ if /linux/ =~ RUBY_PLATFORM && ai.ip_address.include?('%') &&
+ (`uname -r`[/[0-9.]+/].split('.').map(&:to_i) <=> [2,6,18]) <= 0
+ # Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
+ # sendmsg with pktinfo for link-local ipv6 addresses
+ next
+ end
Addrinfo.udp(ai.ip_address, port).connect {|s|
msg1 = "<<<#{ai.inspect}>>>"
s.sendmsg msg1