Test ws2_32:sock shows failures with old windows versions: https://test.winehq.org/data/patterns-tb-win.html#ws2_32:sock
This patch just adds WSAEOPNOTSUPP to be an allowed failing return value.
From: Bernhard Übelacker bernhardu@mailbox.org
--- dlls/ws2_32/tests/sock.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c index 4fd5fc00cdd..867a3a7c2e3 100644 --- a/dlls/ws2_32/tests/sock.c +++ b/dlls/ws2_32/tests/sock.c @@ -4012,8 +4012,11 @@ static void test_WSAConnectByName(void) ret = WSAConnectByNameA(s, "winehq.org", "https", NULL, NULL, NULL, NULL, NULL, NULL); err = WSAGetLastError(); ok(!ret, "WSAConnectByNameA should have failed\n"); - ok(err == WSAEINVAL || err == WSAEFAULT, "expected error %u (WSAEINVAL) or %u (WSAEFAULT), got %u\n", - WSAEINVAL, WSAEFAULT, err); /* WSAEFAULT win10 >= 1809 */ + ok(err == WSAEINVAL || + err == WSAEFAULT || /* win10 >= 1809 */ + err == WSAEOPNOTSUPP, /* win7, win8, win10 <= 1507 */ + "expected error %u (WSAEINVAL) or %u (WSAEFAULT) or %u (WSAEOPNOTSUPP), got %u\n", + WSAEINVAL, WSAEFAULT, WSAEOPNOTSUPP, err); closesocket(s);
/* Passing non-null as the reserved parameter */