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
568a7153
Commit
568a7153
authored
May 29, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Test polling for AFD_POLL_CONNECT with UDP sockets.
parent
6a59b1a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
afd.c
dlls/ws2_32/tests/afd.c
+31
-0
No files found.
dlls/ws2_32/tests/afd.c
View file @
568a7153
...
...
@@ -829,6 +829,37 @@ static void test_poll(void)
ok
(
out_params
->
sockets
[
0
].
flags
==
AFD_POLL_READ
,
"got flags %#x
\n
"
,
out_params
->
sockets
[
0
].
flags
);
ok
(
!
out_params
->
sockets
[
0
].
status
,
"got status %#x
\n
"
,
out_params
->
sockets
[
0
].
status
);
in_params
->
timeout
=
-
1000
*
10000
;
in_params
->
count
=
1
;
in_params
->
sockets
[
0
].
socket
=
server
;
in_params
->
sockets
[
0
].
flags
=
AFD_POLL_CONNECT
;
params_size
=
offsetof
(
struct
afd_poll_params
,
sockets
[
1
]);
ret
=
NtDeviceIoControlFile
((
HANDLE
)
server
,
event
,
NULL
,
NULL
,
&
io
,
IOCTL_AFD_POLL
,
in_params
,
params_size
,
out_params
,
params_size
);
ok
(
ret
==
STATUS_PENDING
,
"got %#x
\n
"
,
ret
);
ret
=
connect
(
server
,
(
struct
sockaddr
*
)
&
addr
,
sizeof
(
addr
));
ok
(
!
ret
,
"got error %lu
\n
"
,
GetLastError
());
ret
=
WaitForSingleObject
(
event
,
100
);
todo_wine
ok
(
!
ret
,
"got %#x
\n
"
,
ret
);
if
(
!
ret
)
{
ok
(
!
io
.
Status
,
"got %#lx
\n
"
,
io
.
Status
);
ok
(
io
.
Information
==
offsetof
(
struct
afd_poll_params
,
sockets
[
1
]),
"got %#Ix
\n
"
,
io
.
Information
);
ok
(
out_params
->
count
==
1
,
"got count %u
\n
"
,
out_params
->
count
);
ok
(
out_params
->
sockets
[
0
].
socket
==
server
,
"got socket %#Ix
\n
"
,
out_params
->
sockets
[
0
].
socket
);
ok
(
out_params
->
sockets
[
0
].
flags
==
AFD_POLL_CONNECT
,
"got flags %#x
\n
"
,
out_params
->
sockets
[
0
].
flags
);
ok
(
!
out_params
->
sockets
[
0
].
status
,
"got status %#x
\n
"
,
out_params
->
sockets
[
0
].
status
);
}
else
{
CancelIo
((
HANDLE
)
server
);
ret
=
WaitForSingleObject
(
event
,
100
);
ok
(
!
ret
,
"wait timed out
\n
"
);
}
closesocket
(
client
);
closesocket
(
server
);
...
...
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