test: Fix test_simpleclose for Windows platform

Replace close with evutil_closesocket
Caught with PR #1006
This commit is contained in:
Nick Grifka 2020-05-07 21:14:13 -07:00
parent 15917b420d
commit 06a1192951

View File

@ -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")) {