mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Merge pull request #1912 from hitstergtd/hitstergtd-testsrcfd-win-fix
Problem: ZMQ_SRCFD test does not work on Windows
This commit is contained in:
commit
d6a57ad589
@ -105,8 +105,13 @@ int main (void)
|
||||
|
||||
// getting name from closed socket will fail
|
||||
rc = getpeername (srcFd, (struct sockaddr*) &ss, &addrlen);
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
assert (rc == SOCKET_ERROR);
|
||||
assert (WSAGetLastError() == WSAENOTSOCK);
|
||||
#else
|
||||
assert (rc == -1);
|
||||
assert (errno == EBADF);
|
||||
#endif
|
||||
|
||||
rc = zmq_ctx_term (ctx);
|
||||
assert (rc == 0);
|
||||
|
Loading…
Reference in New Issue
Block a user