Project

General

Profile

Actions

Bug #1323

closed

Sockets broken on windows

Added by cfis (Charlie Savage) over 15 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2009-03-29) [i386-mswin32_90]
Backport:
[ruby-core:23051]

Description

=begin
Ruby built with VC2008. All the socket tests fail.

ruby socket\test_socket.rb

  1. Error:
    test_accept_loop(TestSocket):
    NoMethodError: undefined method each' for nil:NilClass socket/test_socket.rb:202:in test_accept_loop'

  2. Error:
    test_accept_loop_multi_port(TestSocket):
    NoMethodError: undefined method each' for nil:NilClass socket/test_socket.rb:222:in test_accept_loop_multi_port'

  3. Error:
    test_initialize(TestSocket):
    Errno::EINVAL: Invalid argument - getsockname(2)
    socket/test_socket.rb:39:in getsockname' socket/test_socket.rb:39:in block in test_initialize'
    socket/test_socket.rb:38:in open' socket/test_socket.rb:38:in test_initialize'

  4. Error:
    test_linger(TestSocket):
    Errno::EINVAL: Invalid argument - getsockname(2)
    socket/test_socket.rb:304:in `test_linger'

  5. Error:
    test_tcp(TestSocket):
    Errno::EINVAL: Invalid argument - getsockname(2)
    socket/test_socket.rb:79:in block in test_tcp' socket/test_socket.rb:77:in open'
    socket/test_socket.rb:77:in `test_tcp'

  6. Error:
    test_tcp_server_sockets(TestSocket):
    Errno::EINVAL: Invalid argument - getsockname(2)
    socket/test_socket.rb:99:in `test_tcp_server_sockets'

  7. Error:
    test_tcp_server_sockets_port0(TestSocket):
    NoMethodError: undefined method each' for nil:NilClass socket/test_socket.rb:115:in test_tcp_server_sockets_port0'

  8. Error:
    test_udp_server(TestSocket):
    Errno::EINVAL: Invalid argument - getsockname(2)
    socket/test_socket.rb:260:in `test_udp_server'

16 tests, 23 assertions, 0 failures, 8 errors, 0 skips
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0