[Bug 36681] ws2_32/tests/sock.c fails on gentoo without IPX support

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jul 10 12:48:22 CDT 2017


https://bugs.winehq.org/show_bug.cgi?id=36681

--- Comment #2 from Austin English <austinenglish at gmail.com> ---
(In reply to Bruno Jesus from comment #1)
> I'll take a look, I see some similar issues in PC-BSD.

Any updates Bruno? I still see this:
err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this
requires special permissions.
sock.c:2612: Tests skipped: SOCK_RAW is not supported
sock.c:2658: Test failed: Expected 10047, received 10043
sock.c:2659: Tests skipped: IPX is not supported\

I checked my kernel config, and it lacks IPX support:
austin at austin2:~$ zcat /proc/config.gz  | grep -i ipx
# CONFIG_IPX is not set

Removing the broken check allows the test to pass:
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index f3ba11ceb6..a26bf8d563 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -2655,7 +2655,7 @@ static void test_WSASocket(void)
     if (sock == INVALID_SOCKET)
     {
         err = WSAGetLastError();
-        ok(err == WSAEAFNOSUPPORT || broken(err == WSAEPROTONOSUPPORT),
"Expected 10047, received %d\n", err);
+        ok(err == WSAEAFNOSUPPORT || err == WSAEPROTONOSUPPORT, "Expected
10047, received %d\n", err);
         skip("IPX is not supported\n");
     }
     else

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list