https://bugs.winehq.org/show_bug.cgi?id=36681
Bug ID: 36681 Summary: ws2_32/tests/sock.c fails on gentoo without IPX support Product: Wine Version: 1.7.19 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 48725 --> https://bugs.winehq.org/attachment.cgi?id=48725 +winsock,+tid,+seh
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p ws2_32_test.exe.so sock && touch sock.ok fixme:winsock:convert_socktype_w2u unhandled Windows socket type 0 fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0xffffffff> fixme:winsock:convert_socktype_w2u unhandled Windows socket type 0 fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x0000dead> fixme:winsock:convert_socktype_w2u unhandled Windows socket type 0 fixme:winsock:convert_proto_w2u unhandled Windows socket protocol 57005 fixme:winsock:convert_socktype_w2u unhandled Windows socket type 57005 fixme:winsock:convert_socktype_w2u unhandled Windows socket type 57005 err:winediag:WSASocketW Failed to create a socket of type SOCK_RAW, this requires special permissions. sock.c:2224: Tests skipped: SOCK_RAW is not supported sock.c:2270: Test failed: Expected 10047, received 10043 sock.c:2271: Tests skipped: IPX is not supported
+winsock attached
Linux aw25 3.13.3-gentoo-devlight-1 #1 SMP Thu Feb 20 00:10:55 Local time zone must be set--see zic x86_64 Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz GenuineIntel GNU/Linux
https://bugs.winehq.org/show_bug.cgi?id=36681
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |00cpxxx@gmail.com Assignee|wine-bugs@winehq.org |00cpxxx@gmail.com
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- I'll take a look, I see some similar issues in PC-BSD.
https://bugs.winehq.org/show_bug.cgi?id=36681
--- Comment #2 from Austin English austinenglish@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@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
https://bugs.winehq.org/show_bug.cgi?id=36681
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=36681
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #3 from Alex Henrie alexhenrie24@gmail.com --- The failing test is now marked todo_wine: https://source.winehq.org/git/wine.git/commitdiff/2be851c955cba142dc306ab5c5...
https://bugs.winehq.org/show_bug.cgi?id=36681
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED CC| |fgouget@codeweavers.com Fixed by SHA1| |424a379f641465cde3b3a8a5e9a | |39e5865f926f2 Assignee|00cpxxx@gmail.com |wine-bugs@winehq.org
--- Comment #4 from François Gouget fgouget@codeweavers.com --- As far as I can tell this if fixed, i.e. the todo is gone and there is no failure.
commit 424a379f641465cde3b3a8a5e9a39e5865f926f2 Author: Alexandre Julliard julliard@winehq.org AuthorDate: Tue Nov 20 14:50:21 2018 +0100
server: Return a WSA error code in create_socket.
Signed-off-by: Alexandre Julliard julliard@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=36681
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.0-rc1.