Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b7f06a4a
Commit
b7f06a4a
authored
Jan 01, 2024
by
Gabriel Brand
Committed by
Alexandre Julliard
Jan 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test binding UDP socket to invalid address.
parent
c2d68348
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
sock.c
dlls/ws2_32/tests/sock.c
+7
-0
No files found.
dlls/ws2_32/tests/sock.c
View file @
b7f06a4a
...
...
@@ -12527,6 +12527,13 @@ static void test_bind(void)
s
=
socket
(
AF_INET
,
SOCK_DGRAM
,
IPPROTO_UDP
);
WSASetLastError
(
0xdeadbeef
);
ret
=
bind
(
s
,
(
const
struct
sockaddr
*
)
&
invalid_addr
,
sizeof
(
invalid_addr
));
todo_wine
ok
(
ret
==
-
1
,
"expected failure
\n
"
);
todo_wine
ok
(
WSAGetLastError
()
==
WSAEADDRNOTAVAIL
,
"got error %u
\n
"
,
WSAGetLastError
());
WSASetLastError
(
0xdeadbeef
);
ret
=
bind
(
s
,
(
const
struct
sockaddr
*
)
&
bind_addr
,
sizeof
(
bind_addr
));
ok
(
!
ret
,
"expected success
\n
"
);
ok
(
!
WSAGetLastError
()
||
WSAGetLastError
()
==
0xdeadbeef
/* win <7 */
,
"got error %u
\n
"
,
WSAGetLastError
());
...
...
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