From 06a11929511bebaaf40c52aaf91de397b1782ba2 Mon Sep 17 00:00:00 2001 From: Nick Grifka Date: Thu, 7 May 2020 21:14:13 -0700 Subject: [PATCH] test: Fix test_simpleclose for Windows platform Replace close with evutil_closesocket Caught with PR #1006 --- test/regress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/regress.c b/test/regress.c index fe2a8fd1e1..8b0af3fda6 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")) {