[PATCH 2/5] ws2_32/tests: Verify that recv() does not reset a pending FD_CLOSE.

Zebediah Figura z.figura12 at gmail.com
Wed May 12 21:59:22 CDT 2021


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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). */
-- 
2.30.2




More information about the wine-devel mailing list