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
d6a2f5e2
Commit
d6a2f5e2
authored
Jul 09, 2018
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jul 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe/tests: Add KeInitializeTimerEx tests.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7df54343
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+16
-0
No files found.
dlls/ntoskrnl.exe/tests/driver.c
View file @
d6a2f5e2
...
...
@@ -172,6 +172,21 @@ todo_wine
IoFreeMdl
(
mdl
);
}
static
void
test_init_funcs
(
void
)
{
KTIMER
timer
,
timer2
;
KeInitializeTimerEx
(
&
timer
,
NotificationTimer
);
ok
(
timer
.
Header
.
Type
==
8
,
"got: %u
\n
"
,
timer
.
Header
.
Type
);
ok
(
timer
.
Header
.
Size
==
0
||
timer
.
Header
.
Size
==
10
,
"got: %u
\n
"
,
timer
.
Header
.
Size
);
ok
(
timer
.
Header
.
SignalState
==
0
,
"got: %u
\n
"
,
timer
.
Header
.
SignalState
);
KeInitializeTimerEx
(
&
timer2
,
SynchronizationTimer
);
ok
(
timer2
.
Header
.
Type
==
9
,
"got: %u
\n
"
,
timer2
.
Header
.
Type
);
ok
(
timer2
.
Header
.
Size
==
0
||
timer2
.
Header
.
Size
==
10
,
"got: %u
\n
"
,
timer2
.
Header
.
Size
);
ok
(
timer2
.
Header
.
SignalState
==
0
,
"got: %u
\n
"
,
timer2
.
Header
.
SignalState
);
}
static
NTSTATUS
main_test
(
IRP
*
irp
,
IO_STACK_LOCATION
*
stack
,
ULONG_PTR
*
info
)
{
ULONG
length
=
stack
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
;
...
...
@@ -197,6 +212,7 @@ static NTSTATUS main_test(IRP *irp, IO_STACK_LOCATION *stack, ULONG_PTR *info)
test_currentprocess
();
test_mdl_map
();
test_init_funcs
();
/* print process report */
if
(
test_input
->
winetest_debug
)
...
...
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