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
2ca895cb
Commit
2ca895cb
authored
Jul 22, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Wait for AFD_POLL_RESET in test_get_events_reset().
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=54113
parent
9d330d81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
afd.c
dlls/ws2_32/tests/afd.c
+11
-4
No files found.
dlls/ws2_32/tests/afd.c
View file @
2ca895cb
...
...
@@ -2058,17 +2058,20 @@ static void test_get_events_reset(void)
tcp_socketpair
(
&
client
,
&
server
);
ret
=
WSAEventSelect
(
client
,
event
,
FD_ACCEPT
|
FD_C
ONNECT
|
FD_CLOSE
|
FD_OOB
|
FD_READ
|
FD_WRITE
);
ret
=
WSAEventSelect
(
client
,
event
,
FD_ACCEPT
|
FD_C
LOSE
|
FD_OOB
|
FD_READ
);
ok
(
!
ret
,
"got error %lu
\n
"
,
GetLastError
());
close_with_rst
(
server
);
ret
=
WaitForSingleObject
(
event
,
1000
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
memset
(
&
params
,
0xcc
,
sizeof
(
params
));
memset
(
&
io
,
0xcc
,
sizeof
(
io
));
ret
=
NtDeviceIoControlFile
((
HANDLE
)
client
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_AFD_GET_EVENTS
,
NULL
,
0
,
&
params
,
sizeof
(
params
));
ok
(
!
ret
,
"got %#x
\n
"
,
ret
);
ok
(
params
.
flags
==
(
AFD_POLL_RESET
|
AFD_POLL_CONNECT
|
AFD_POLL_WRITE
)
,
"got flags %#x
\n
"
,
params
.
flags
);
ok
(
params
.
flags
==
AFD_POLL_RESET
,
"got flags %#x
\n
"
,
params
.
flags
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
params
.
status
);
++
i
)
ok
(
!
params
.
status
[
i
],
"got status[%u] %#x
\n
"
,
i
,
params
.
status
[
i
]);
...
...
@@ -2076,17 +2079,21 @@ static void test_get_events_reset(void)
tcp_socketpair
(
&
client
,
&
server
);
ret
=
WSAEventSelect
(
server
,
event
,
FD_ACCEPT
|
FD_CONNECT
|
FD_CLOSE
|
FD_OOB
|
FD_READ
|
FD_WRITE
);
ResetEvent
(
event
);
ret
=
WSAEventSelect
(
server
,
event
,
FD_ACCEPT
|
FD_CLOSE
|
FD_OOB
|
FD_READ
);
ok
(
!
ret
,
"got error %lu
\n
"
,
GetLastError
());
close_with_rst
(
client
);
ret
=
WaitForSingleObject
(
event
,
1000
);
ok
(
!
ret
,
"got %d
\n
"
,
ret
);
memset
(
&
params
,
0xcc
,
sizeof
(
params
));
memset
(
&
io
,
0xcc
,
sizeof
(
io
));
ret
=
NtDeviceIoControlFile
((
HANDLE
)
server
,
NULL
,
NULL
,
NULL
,
&
io
,
IOCTL_AFD_GET_EVENTS
,
NULL
,
0
,
&
params
,
sizeof
(
params
));
ok
(
!
ret
,
"got %#x
\n
"
,
ret
);
ok
(
params
.
flags
==
(
AFD_POLL_RESET
|
AFD_POLL_WRITE
)
,
"got flags %#x
\n
"
,
params
.
flags
);
ok
(
params
.
flags
==
AFD_POLL_RESET
,
"got flags %#x
\n
"
,
params
.
flags
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
params
.
status
);
++
i
)
ok
(
!
params
.
status
[
i
],
"got status[%u] %#x
\n
"
,
i
,
params
.
status
[
i
]);
...
...
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