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