Skip to content

Commit

Permalink
test: Fix test_simpleclose for Windows platform
Browse files Browse the repository at this point in the history
Replace close with evutil_closesocket
Caught with PR libevent#1006
  • Loading branch information
nigriMSFT committed May 8, 2020
1 parent 15917b4 commit 06a1192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/regress.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 06a1192

Please sign in to comment.