Module: wine Branch: master Commit: a83c3736a96226aadbed0132fbd049111aa98875 URL: https://gitlab.winehq.org/wine/wine/-/commit/a83c3736a96226aadbed0132fbd0491...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Jul 15 18:45:59 2022 -0500
ws2_32/tests: Test send() after TCP reset.
---
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 951c4abee2e..9f1da1039c4 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -13660,6 +13660,11 @@ static void test_tcp_reset(void) todo_wine ok(ret == -1, "got %d\n", ret); todo_wine ok(WSAGetLastError() == WSAECONNRESET, "got error %u\n", WSAGetLastError());
+ WSASetLastError(0xdeadbeef); + ret = send(client, "data", 5, 0); + ok(ret == -1, "got %d\n", ret); + ok(WSAGetLastError() == WSAECONNRESET, "got error %u\n", WSAGetLastError()); + check_poll(client, POLLERR | POLLHUP | POLLWRNORM);
FD_ZERO(&readfds);