summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 05:20:44 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-19 05:20:44 +0000
commit53b89477a1b5b3cdee6dc9347ca34652947b724a (patch)
tree29a5880e9e38f50a7ef10134773e204929261065 /test/socket
parente184e61a2b3216698c450259fa983be55dcca486 (diff)
merge from trunk (r27877, r27879, r27880, r27883, r27884)
* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if they are not implemented. * test/socket/test_addrinfo.rb: ipaddr.rb defines Socket::AF_INET6 as an Object if the constant is not available. * test/logger/test_logger.rb: close logger (or logdevice) if it's related to a file because some platforms such as Windows cannot remove opened files. * test/openssl/test_ssl.rb (server_loop): treat Errno::ENOTSOCK just like as Errno::EBADF and Errno::EINVAL. * test/openssl/test_ssl.rb (test_client_auth): Errno::ECONNRESET is raised on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_addrinfo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb
index 4c3babdfa8..77ef0ae321 100644
--- a/test/socket/test_addrinfo.rb
+++ b/test/socket/test_addrinfo.rb
@@ -444,7 +444,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase
assert_equal(ai1.canonname, ai2.canonname)
end
- if Socket.const_defined?("AF_INET6")
+ if Socket.const_defined?("AF_INET6") && Socket::AF_INET6.is_a?(Integer)
def test_addrinfo_new_inet6
ai = Addrinfo.new(["AF_INET6", 42304, "ip6-localhost", "::1"])