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
0f98972f
Commit
0f98972f
authored
Mar 08, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Add tests for SymRefreshModuleList() on non-live target.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
aabb4e12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+13
-0
No files found.
dlls/dbghelp/tests/dbghelp.c
View file @
0f98972f
...
...
@@ -424,6 +424,9 @@ static BOOL test_modules(void)
ret
=
SymInitialize
(
dummy
,
NULL
,
FALSE
);
ok
(
ret
,
"got error %lu
\n
"
,
GetLastError
());
ret
=
SymRefreshModuleList
(
dummy
);
ok
(
!
ret
,
"SymRefreshModuleList should have failed
\n
"
);
count
=
get_module_count
(
dummy
);
ok
(
count
==
0
,
"Unexpected count (%u instead of 0)
\n
"
,
count
);
...
...
@@ -731,6 +734,10 @@ static void test_loaded_modules(void)
}
}
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
todo_wine_if
(
get_process_kind
(
pi
.
hProcess
)
==
PCSKIND_WOW64
)
ok
(
ret
||
broken
(
GetLastError
()
==
STATUS_PARTIAL_COPY
/* Win11 in some cases */
),
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
SymCleanup
(
pi
.
hProcess
);
TerminateProcess
(
pi
.
hProcess
,
0
);
...
...
@@ -766,6 +773,9 @@ static void test_loaded_modules(void)
"Wrong directory aggregation count %u %u
\n
"
,
aggregation
.
count_systemdir
,
aggregation
.
count_wowdir
);
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
SymCleanup
(
pi
.
hProcess
);
TerminateProcess
(
pi
.
hProcess
,
0
);
}
...
...
@@ -804,6 +814,9 @@ static void test_loaded_modules(void)
"Wrong directory aggregation count %u %u
\n
"
,
aggregation2
.
count_systemdir
,
aggregation2
.
count_wowdir
);
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
SymCleanup
(
pi
.
hProcess
);
TerminateProcess
(
pi
.
hProcess
,
0
);
}
...
...
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