Project

General

Profile

Actions

Bug #13491

closed

MinGW 58400 - TestSocket_BasicSocket#test_read_write_nonblock

Added by MSP-Greg (Greg L) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-04-21 trunk 58426) [x64-mingw32]
[ruby-core:80817]

Description

The test TestSocket_BasicSocket#test_read_write_nonblock was recently add via 58400 / c32fc82.

On a MinGW build, it fails. The following change at line 197 allows a MinGW build to pass.

      case r = ssock.read_nonblock(16384, buf, exception: false)
      when String
        next
      when nil
        break
      else
-       flunk "unexpected read_nonblock return: #{r.inspect}"
+       flunk "unexpected read_nonblock return: #{r.inspect}" unless set_nb
      end while true

See GitHub PR 1595

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0