[PATCH 2/2] ws2_32/tests: Initialize bytesReturned to 123456 before a failing test
Alex Henrie
alexhenrie24 at gmail.com
Wed Jan 3 23:33:31 CST 2018
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
My hypothesis is that this test fails intermittently because the sockets
are opened and closed so quickly that Windows forgets to set
bytesReturned to 0. If I'm right, this change will make it really
obvious.
---
dlls/ws2_32/tests/sock.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 22b733123a..96631aea37 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -8539,6 +8539,7 @@ todo_wine
dwret = WaitForSingleObject(overlapped.hEvent, 1000);
ok(dwret == WAIT_OBJECT_0, "Waiting for accept event failed with %d + errno %d\n", dwret, GetLastError());
+ bytesReturned = 123456;
bret = GetOverlappedResult((HANDLE)listener, &overlapped, &bytesReturned, FALSE);
ok(bret, "GetOverlappedResult failed, error %d\n", GetLastError());
ok(bytesReturned == 0, "bytesReturned isn't supposed to be %d\n", bytesReturned);
--
2.15.1
More information about the wine-devel
mailing list