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
648cbf63
Commit
648cbf63
authored
Jul 07, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jul 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Add a test for sorting of InMemoryOrderModuleList.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77be5928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
loader.c
dlls/kernel32/tests/loader.c
+19
-0
No files found.
dlls/kernel32/tests/loader.c
View file @
648cbf63
...
...
@@ -2750,6 +2750,24 @@ static void test_ResolveDelayLoadedAPI(void)
DeleteFileA
(
dll_name
);
}
static
void
test_InMemoryOrderModuleList
(
void
)
{
LIST_ENTRY
*
entry1
,
*
mark1
=
&
NtCurrentTeb
()
->
Peb
->
LdrData
->
InLoadOrderModuleList
;
LIST_ENTRY
*
entry2
,
*
mark2
=
&
NtCurrentTeb
()
->
Peb
->
LdrData
->
InMemoryOrderModuleList
;
LDR_MODULE
*
module1
,
*
module2
;
for
(
entry1
=
mark1
->
Flink
,
entry2
=
mark2
->
Flink
;
entry1
!=
mark1
&&
entry2
!=
mark2
;
entry1
=
entry1
->
Flink
,
entry2
=
entry2
->
Flink
)
{
module1
=
CONTAINING_RECORD
(
entry1
,
LDR_MODULE
,
InLoadOrderModuleList
);
module2
=
CONTAINING_RECORD
(
entry2
,
LDR_MODULE
,
InMemoryOrderModuleList
);
ok
(
module1
==
module2
,
"expected module1 == module2, got %p and %p
\n
"
,
module1
,
module2
);
}
ok
(
entry1
==
mark1
,
"expected entry1 == mark1, got %p and %p
\n
"
,
entry1
,
mark1
);
ok
(
entry2
==
mark2
,
"expected entry2 == mark2, got %p and %p
\n
"
,
entry2
,
mark2
);
}
START_TEST
(
loader
)
{
int
argc
;
...
...
@@ -2804,4 +2822,5 @@ START_TEST(loader)
test_section_access
();
test_import_resolution
();
test_ExitProcess
();
test_InMemoryOrderModuleList
();
}
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