Zebediah Figura : ws2_32/tests: Fix a test failure in test_GetAddrInfoExW().
Alexandre Julliard
julliard at winehq.org
Mon Aug 16 18:07:24 CDT 2021
Module: wine
Branch: master
Commit: 17871709e582708b435fdecc786d31f5f350fbba
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17871709e582708b435fdecc786d31f5f350fbba
Author: Zebediah Figura <zfigura at codeweavers.com>
Date: Mon Aug 16 11:20:17 2021 -0500
ws2_32/tests: Fix a test failure in test_GetAddrInfoExW().
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/tests/protocol.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dlls/ws2_32/tests/protocol.c b/dlls/ws2_32/tests/protocol.c
index 1f039e509da..bb09dc98f1c 100644
--- a/dlls/ws2_32/tests/protocol.c
+++ b/dlls/ws2_32/tests/protocol.c
@@ -1910,7 +1910,9 @@ static void test_GetAddrInfoExW(void)
ResetEvent(event);
ret = pGetAddrInfoExW(localhost, NULL, NS_DNS, NULL, NULL, &result, NULL, &overlapped, NULL, NULL);
ok(ret == ERROR_IO_PENDING, "GetAddrInfoExW failed with %d\n", WSAGetLastError());
- ok(!result, "result != NULL\n");
+ /* result pointer is cleared by GetAddrInfoExW(), but may be set to the
+ * actual addrinfo before we can verify that */
+ ok(result != (void *)0xdeadbeef, "result was not changed\n");
ok(WaitForSingleObject(event, 1000) == WAIT_OBJECT_0, "wait failed\n");
ret = pGetAddrInfoExOverlappedResult(&overlapped);
ok(!ret, "overlapped result is %d\n", ret);
More information about the wine-cvs
mailing list