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
6afe77a2
Commit
6afe77a2
authored
Sep 07, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl/tests: Use wine/test.h in the driver tests.
parent
8afa5708
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+1
-1
driver.h
dlls/ntoskrnl.exe/tests/driver.h
+3
-0
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+3
-0
utils.h
dlls/ntoskrnl.exe/tests/utils.h
+0
-0
No files found.
dlls/ntoskrnl.exe/tests/driver.c
View file @
6afe77a2
...
@@ -2254,7 +2254,7 @@ static void test_process_memory(const struct main_test_input *test_input)
...
@@ -2254,7 +2254,7 @@ static void test_process_memory(const struct main_test_input *test_input)
win_skip
(
"MmCopyVirtualMemory is not available.
\n
"
);
win_skip
(
"MmCopyVirtualMemory is not available.
\n
"
);
}
}
if
(
!
running_under
_wine
)
if
(
!
winetest_platform_is
_wine
)
{
{
KeStackAttachProcess
((
PKPROCESS
)
process
,
&
state
);
KeStackAttachProcess
((
PKPROCESS
)
process
,
&
state
);
todo_wine
ok
(
!
strcmp
(
teststr
,
(
char
*
)(
base
+
test_input
->
teststr_offset
)),
todo_wine
ok
(
!
strcmp
(
teststr
,
(
char
*
)(
base
+
test_input
->
teststr_offset
)),
...
...
dlls/ntoskrnl.exe/tests/driver.h
View file @
6afe77a2
...
@@ -55,8 +55,11 @@ struct test_data
...
@@ -55,8 +55,11 @@ struct test_data
int
running_under_wine
;
int
running_under_wine
;
int
winetest_report_success
;
int
winetest_report_success
;
int
winetest_debug
;
int
winetest_debug
;
LONG
successes
;
LONG
failures
;
LONG
failures
;
LONG
todo_successes
;
LONG
todo_failures
;
LONG
todo_failures
;
LONG
skipped
;
};
};
struct
main_test_input
struct
main_test_input
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
6afe77a2
...
@@ -386,8 +386,11 @@ static void cat_okfile(void)
...
@@ -386,8 +386,11 @@ static void cat_okfile(void)
SetFilePointer
(
okfile
,
0
,
NULL
,
FILE_BEGIN
);
SetFilePointer
(
okfile
,
0
,
NULL
,
FILE_BEGIN
);
SetEndOfFile
(
okfile
);
SetEndOfFile
(
okfile
);
InterlockedAdd
(
&
winetest_successes
,
InterlockedExchange
(
&
test_data
->
successes
,
0
));
winetest_add_failures
(
InterlockedExchange
(
&
test_data
->
failures
,
0
));
winetest_add_failures
(
InterlockedExchange
(
&
test_data
->
failures
,
0
));
InterlockedAdd
(
&
winetest_todo_successes
,
InterlockedExchange
(
&
test_data
->
todo_successes
,
0
));
winetest_add_failures
(
InterlockedExchange
(
&
test_data
->
todo_failures
,
0
));
winetest_add_failures
(
InterlockedExchange
(
&
test_data
->
todo_failures
,
0
));
InterlockedAdd
(
&
winetest_skipped
,
InterlockedExchange
(
&
test_data
->
skipped
,
0
));
}
}
static
ULONG64
modified_value
;
static
ULONG64
modified_value
;
...
...
dlls/ntoskrnl.exe/tests/utils.h
View file @
6afe77a2
This diff is collapsed.
Click to expand it.
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