aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-bind6-error.c
diff options
context:
space:
mode:
authorAlexis Campailla <alexis@janeasystems.com>2013-12-17 04:26:28 -0800
committerBert Belder <bertbelder@gmail.com>2014-01-09 18:29:18 +0100
commitc0716b3d9f89e3557a482ce499e7abc8db686418 (patch)
treea87a8dfbc308c96636463f4ad16d10a7fc963a91 /test/test-tcp-bind6-error.c
parent4ce9c39dd86d80ef00476fd00bedb9d56172a86d (diff)
downloadlibuv-c0716b3d9f89e3557a482ce499e7abc8db686418.tar.gz
libuv-c0716b3d9f89e3557a482ce499e7abc8db686418.zip
windows: improved handling of invalid FDs
If passed and invalid FD, _get_osfhandle() sets an error code through errno, not _doserrno. Hence we need to use SET_REQ_WIN32_ERROR insted of SET_REQ_RESULT. In debug builds, _get_osfhandle() also raises a superfluous assert. I implemented a wrapper that disables all asserts around the call to _get_osfhandle(). This fixes node.js unit tests test-fs-read-stream.js and test-listen-fd-ebadf.js.
Diffstat (limited to 'test/test-tcp-bind6-error.c')
0 files changed, 0 insertions, 0 deletions