[ruby-cvs:71331] normal:r64239 (trunk): spec/ruby/library/socket/*: more FreeBSD fixes

normal at ruby-lang.org normal at ruby-lang.org
Thu Aug 9 12:32:51 JST 2018


normal	2018-08-09 12:32:51 +0900 (Thu, 09 Aug 2018)

  New Revision: 64239

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64239

  Log:
    spec/ruby/library/socket/*: more FreeBSD fixes
    
    FreeBSD portability notes:
    
    Loopback connections are not instantaneous (unlike Linux), so
    non-blocking read-after-write MUST check for readability via
    IO.select or IO#wait_readable before attempting non-blocking
    recv/read operations.
    
    IPv6 seems favored, so we'll get "::" instead of "0.0.0.0"
    
    Some constants are different or obsolete, so that should be
    self-explanatory.
    
    There are still other failures I or somebody else needs to get
    to when we have time and feel like dealing with spec DSL:
    
          http://rubyci.s3.amazonaws.com/freebsd11zfs/ruby-trunk/recent.html

  Modified files:
    trunk/spec/ruby/library/socket/basicsocket/recvmsg_nonblock_spec.rb
    trunk/spec/ruby/library/socket/constants/constants_spec.rb
    trunk/spec/ruby/library/socket/socket/accept_nonblock_spec.rb
    trunk/spec/ruby/library/socket/socket/recvfrom_nonblock_spec.rb
    trunk/spec/ruby/library/socket/socket/udp_server_recv_spec.rb
    trunk/spec/ruby/library/socket/tcpserver/initialize_spec.rb
    trunk/spec/ruby/library/socket/udpsocket/recvfrom_nonblock_spec.rb


More information about the ruby-cvs mailing list