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
03d6a867
Commit
03d6a867
authored
Jan 07, 2023
by
Etaash Mathamsetty
Committed by
Alexandre Julliard
Sep 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe/tests: Add KeInitializeDpc tests.
parent
51f16a2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+17
-0
No files found.
dlls/ntoskrnl.exe/tests/driver.c
View file @
03d6a867
...
...
@@ -2123,9 +2123,26 @@ static void WINAPI test_dpc_func(PKDPC Dpc, void *context, void *cpu_count,
static
void
test_dpc
(
void
)
{
void
(
WINAPI
*
pKeGenericCallDpc
)(
PKDEFERRED_ROUTINE
routine
,
void
*
context
);
void
(
WINAPI
*
pKeInitializeDpc
)(
PKDPC
dpc
,
PKDEFERRED_ROUTINE
routine
,
void
*
context
);
struct
test_dpc_func_context
data
;
KAFFINITY
cpu_mask
;
ULONG
cpu_count
;
struct
_KDPC
dpc
=
{
0
};
pKeInitializeDpc
=
get_proc_address
(
"KeInitializeDpc"
);
if
(
!
pKeInitializeDpc
)
{
win_skip
(
"KeInitializeDpc is not available.
\n
"
);
return
;
}
pKeInitializeDpc
(
&
dpc
,
test_dpc_func
,
&
data
);
ok
(
dpc
.
Number
==
0
,
"Got unexpected Dpc Number %u.
\n
"
,
dpc
.
Number
);
todo_wine
ok
(
dpc
.
Type
==
0x13
,
"Got unexpected Dpc Type %u.
\n
"
,
dpc
.
Type
);
todo_wine
ok
(
dpc
.
Importance
==
MediumImportance
,
"Got unexpected Dpc Importance %u.
\n
"
,
dpc
.
Importance
);
ok
(
dpc
.
DeferredRoutine
==
test_dpc_func
,
"Got unexpected Dpc DeferredRoutine %p.
\n
"
,
dpc
.
DeferredRoutine
);
ok
(
dpc
.
DeferredContext
==
&
data
,
"Got unexpected Dpc DeferredContext %p.
\n
"
,
dpc
.
DeferredContext
);
pKeGenericCallDpc
=
get_proc_address
(
"KeGenericCallDpc"
);
if
(
!
pKeGenericCallDpc
)
...
...
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