mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
test: Fix test_simpleclose for Windows platform
Replace close with evutil_closesocket Caught with PR #1006
This commit is contained in:
parent
15917b420d
commit
06a1192951
@ -495,7 +495,7 @@ test_simpleclose(void *ptr)
|
||||
|
||||
got_event = 0;
|
||||
if (strstr(flags, "close")) {
|
||||
tt_assert(!close(pair[1]));
|
||||
tt_assert(!evutil_closesocket(pair[1]));
|
||||
/* avoid closing in setup routines */
|
||||
pair[1] = -1;
|
||||
} else if (strstr(flags, "shutdown")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user