diff options
Diffstat (limited to 'test/socket/test_tcp.rb')
-rw-r--r-- | test/socket/test_tcp.rb | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb index 758187b385..146dd200f4 100644 --- a/test/socket/test_tcp.rb +++ b/test/socket/test_tcp.rb @@ -142,7 +142,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v6_hostname_resolved_earlier - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ begin @@ -167,7 +167,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v4_hostname_resolved_earlier - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ server = TCPServer.new("127.0.0.1", 0) @@ -188,7 +188,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v6_hostname_resolved_in_resolution_delay - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ begin @@ -214,7 +214,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v6_hostname_resolved_earlier_and_v6_server_is_not_listening - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ ipv4_address = "127.0.0.1" @@ -237,7 +237,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v6_hostname_resolved_later_and_v6_server_is_not_listening - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ ipv4_server = Socket.new(Socket::AF_INET, :STREAM) @@ -263,7 +263,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_v6_hostname_resolution_failed_and_v4_hostname_resolution_is_success - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ server = TCPServer.new("127.0.0.1", 0) @@ -284,10 +284,15 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_resolv_timeout_with_connection_failure - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ - server = TCPServer.new("::1", 0) + begin + server = TCPServer.new("::1", 0) + rescue Errno::EADDRNOTAVAIL # IPv6 is not supported + exit + end + port = server.connect_address.ip_port server.close @@ -303,7 +308,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_with_hostname_resolution_failure_after_connection_failure - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ begin @@ -325,7 +330,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_with_connection_failure_after_hostname_resolution_failure - pend "to suppress the output of test failure logs in CI temporarily" + # pend "to suppress the output of test failure logs in CI temporarily" return if RUBY_PLATFORM =~ /mswin|mingw|cygwin/ server = TCPServer.new("127.0.0.1", 0) |