Paul Gofman : ws2_32/tests: Don't fail the test in test_wsaioctl() if only one interface is available.
Alexandre Julliard
julliard at winehq.org
Thu Dec 17 15:50:26 CST 2020
Module: wine
Branch: master
Commit: e695982db3144fa1712440efbb8c53979fccaa91
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e695982db3144fa1712440efbb8c53979fccaa91
Author: Paul Gofman <pgofman at codeweavers.com>
Date: Thu Dec 17 12:38:30 2020 +0300
ws2_32/tests: Don't fail the test in test_wsaioctl() if only one interface is available.
Fixes test failure on Testbot.
Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/tests/sock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 98cc3881853..2b0a7354f4b 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -10530,7 +10530,7 @@ static void test_wsaioctl(void)
ok(size && size != 0xdeadbeef && !(size % sizeof(INTERFACE_INFO)), "Got unexpected size %u.\n", size);
size = 0xdeadbeef;
- ret = WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0, buffer, sizeof(INTERFACE_INFO), &size, NULL, NULL);
+ ret = WSAIoctl(s, SIO_GET_INTERFACE_LIST, NULL, 0, buffer, sizeof(INTERFACE_INFO) - 1, &size, NULL, NULL);
ok(ret == -1, "Got unexpected ret %d.\n", ret);
ok(WSAGetLastError() == WSAEFAULT, "Got unexpected error %d.\n", WSAGetLastError());
ok(!size, "Got unexpected size %u.\n", size);
More information about the wine-cvs
mailing list