Zebediah Figura : ws2_32/tests: Verify that recv() does not reset a pending FD_CLOSE.

Alexandre Julliard julliard at winehq.org
Thu May 13 15:30:59 CDT 2021


Module: wine
Branch: master
Commit: 11102116ac7e8cee6ca4149d00a6c416dfc8c966
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=11102116ac7e8cee6ca4149d00a6c416dfc8c966

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Wed May 12 21:59:22 2021 -0500

ws2_32/tests: Verify that recv() does not reset a pending FD_CLOSE.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ws2_32/tests/sock.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 7611b934c3a..2d9c0958dd7 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -4463,6 +4463,11 @@ static void test_close_events(struct event_test_ctx *ctx)
         check_events_todo_msg(ctx, FD_CLOSE, 0, 200);
     check_events(ctx, 0, 0, 0);
 
+    ret = recv(server, buffer, 5, 0);
+    ok(!ret, "got %d\n", ret);
+
+    check_events(ctx, 0, 0, 0);
+
     closesocket(server);
 
     /* Test shutdown(remote end, SD_SEND). */




More information about the wine-cvs mailing list