From: Nick Grifka Date: Fri, 8 May 2020 04:14:13 +0000 (-0700) Subject: test: Fix test_simpleclose for Windows platform X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a11929511bebaaf40c52aaf91de397b1782ba2;p=libevent test: Fix test_simpleclose for Windows platform Replace close with evutil_closesocket Caught with PR #1006 --- diff --git a/test/regress.c b/test/regress.c index fe2a8fd1..8b0af3fd 100644 --- a/test/regress.c +++ b/test/regress.c @@ -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")) {