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:
Nick Grifka 2020-05-07 21:14:13 -07:00 committed by Azat Khuzhin
parent 2af1f6cc2d
commit 141e37c804

View File

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