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
9badb780
Commit
9badb780
authored
Nov 17, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Add more tests for NtRemoveIoCompletionEx().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e09248d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
file.c
dlls/ntdll/tests/file.c
+26
-0
No files found.
dlls/ntdll/tests/file.c
View file @
9badb780
...
...
@@ -955,6 +955,32 @@ static void test_set_io_completion(void)
info
[
1
].
IoStatusBlock
.
Information
);
ok
(
U
(
info
[
1
].
IoStatusBlock
).
Status
==
56
,
"wrong status %#x
\n
"
,
U
(
info
[
1
].
IoStatusBlock
).
Status
);
res
=
pNtSetIoCompletion
(
h
,
123
,
456
,
789
,
size
);
ok
(
res
==
STATUS_SUCCESS
,
"NtSetIoCompletion failed: %#x
\n
"
,
res
);
res
=
pNtSetIoCompletion
(
h
,
12
,
34
,
56
,
size
);
ok
(
res
==
STATUS_SUCCESS
,
"NtSetIoCompletion failed: %#x
\n
"
,
res
);
count
=
0xdeadbeef
;
res
=
pNtRemoveIoCompletionEx
(
h
,
info
,
1
,
&
count
,
NULL
,
FALSE
);
ok
(
res
==
STATUS_SUCCESS
,
"NtRemoveIoCompletionEx failed: %#x
\n
"
,
res
);
ok
(
count
==
1
,
"wrong count %u
\n
"
,
count
);
ok
(
info
[
0
].
CompletionKey
==
123
,
"wrong key %#lx
\n
"
,
info
[
0
].
CompletionKey
);
ok
(
info
[
0
].
CompletionValue
==
456
,
"wrong value %#lx
\n
"
,
info
[
0
].
CompletionValue
);
ok
(
info
[
0
].
IoStatusBlock
.
Information
==
size
,
"wrong information %#lx
\n
"
,
info
[
0
].
IoStatusBlock
.
Information
);
ok
(
U
(
info
[
0
].
IoStatusBlock
).
Status
==
789
,
"wrong status %#x
\n
"
,
U
(
info
[
0
].
IoStatusBlock
).
Status
);
count
=
0xdeadbeef
;
res
=
pNtRemoveIoCompletionEx
(
h
,
info
,
1
,
&
count
,
NULL
,
FALSE
);
ok
(
res
==
STATUS_SUCCESS
,
"NtRemoveIoCompletionEx failed: %#x
\n
"
,
res
);
ok
(
count
==
1
,
"wrong count %u
\n
"
,
count
);
ok
(
info
[
0
].
CompletionKey
==
12
,
"wrong key %#lx
\n
"
,
info
[
0
].
CompletionKey
);
ok
(
info
[
0
].
CompletionValue
==
34
,
"wrong value %#lx
\n
"
,
info
[
0
].
CompletionValue
);
ok
(
info
[
0
].
IoStatusBlock
.
Information
==
size
,
"wrong information %#lx
\n
"
,
info
[
0
].
IoStatusBlock
.
Information
);
ok
(
U
(
info
[
0
].
IoStatusBlock
).
Status
==
56
,
"wrong status %#x
\n
"
,
U
(
info
[
0
].
IoStatusBlock
).
Status
);
apc_count
=
0
;
QueueUserAPC
(
user_apc_proc
,
GetCurrentThread
(),
(
ULONG_PTR
)
&
apc_count
);
...
...
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