Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1acb569a
Commit
1acb569a
authored
Jan 19, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Fix some test failures on Windows 11.
parent
a744265c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
sock.c
dlls/ws2_32/tests/sock.c
+7
-4
No files found.
dlls/ws2_32/tests/sock.c
View file @
1acb569a
...
...
@@ -3003,6 +3003,7 @@ static void test_WSASocket(void)
int
family
,
type
,
protocol
;
DWORD
error
;
int
ret_family
,
ret_type
,
ret_protocol
;
int
ret_family_alt
;
}
tests
[]
=
{
...
...
@@ -3030,14 +3031,14 @@ static void test_WSASocket(void)
{
AF_INET
,
SOCK_DGRAM
,
IPPROTO_TCP
,
WSAEPROTONOSUPPORT
},
/* 19 */
{
AF_UNSPEC
,
SOCK_STREAM
,
IPPROTO_TCP
,
0
,
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
},
{
AF_UNSPEC
,
SOCK_STREAM
,
IPPROTO_TCP
,
0
,
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
,
AF_INET6
/* win11 */
},
{
AF_UNSPEC
,
SOCK_STREAM
,
0xdead
,
WSAEPROTONOSUPPORT
},
{
AF_UNSPEC
,
0xdead
,
IPPROTO_UDP
,
WSAESOCKTNOSUPPORT
},
{
AF_UNSPEC
,
SOCK_STREAM
,
0
,
WSAEINVAL
},
{
AF_UNSPEC
,
SOCK_DGRAM
,
0
,
WSAEINVAL
},
{
AF_UNSPEC
,
0xdead
,
0
,
WSAEINVAL
},
{
AF_UNSPEC
,
0
,
IPPROTO_TCP
,
0
,
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
},
{
AF_UNSPEC
,
0
,
IPPROTO_UDP
,
0
,
AF_INET
,
SOCK_DGRAM
,
IPPROTO_UDP
},
{
AF_UNSPEC
,
0
,
IPPROTO_TCP
,
0
,
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
,
AF_INET6
/* win11 */
},
{
AF_UNSPEC
,
0
,
IPPROTO_UDP
,
0
,
AF_INET
,
SOCK_DGRAM
,
IPPROTO_UDP
,
AF_INET6
/* win11 */
},
{
AF_UNSPEC
,
0
,
0xdead
,
WSAEPROTONOSUPPORT
},
{
AF_UNSPEC
,
0
,
0
,
WSAEINVAL
},
};
...
...
@@ -3061,7 +3062,9 @@ static void test_WSASocket(void)
size
=
sizeof
(
info
);
err
=
getsockopt
(
sock
,
SOL_SOCKET
,
SO_PROTOCOL_INFOA
,
(
char
*
)
&
info
,
&
size
);
ok
(
!
err
,
"Test %u: getsockopt failed, error %u
\n
"
,
i
,
WSAGetLastError
());
ok
(
info
.
iAddressFamily
==
tests
[
i
].
ret_family
,
"Test %u: got wrong family %d
\n
"
,
i
,
info
.
iAddressFamily
);
ok
(
info
.
iAddressFamily
==
tests
[
i
].
ret_family
||
(
tests
[
i
].
ret_family_alt
&&
info
.
iAddressFamily
==
tests
[
i
].
ret_family_alt
),
"Test %u: got wrong family %d
\n
"
,
i
,
info
.
iAddressFamily
);
ok
(
info
.
iSocketType
==
tests
[
i
].
ret_type
,
"Test %u: got wrong type %d
\n
"
,
i
,
info
.
iSocketType
);
ok
(
info
.
iProtocol
==
tests
[
i
].
ret_protocol
,
"Test %u: got wrong protocol %d
\n
"
,
i
,
info
.
iProtocol
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment