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
ed532a36
Commit
ed532a36
authored
May 16, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 02, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp/tests: Review old-wow64 expected values.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
76d92298
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
dbghelp.c
dlls/dbghelp/tests/dbghelp.c
+38
-1
No files found.
dlls/dbghelp/tests/dbghelp.c
View file @
ed532a36
...
@@ -764,6 +764,24 @@ static void test_loaded_modules(void)
...
@@ -764,6 +764,24 @@ static void test_loaded_modules(void)
ret
=
wrapper_EnumerateLoadedModulesW64
(
pi
.
hProcess
,
aggregate_cb
,
&
aggregation
);
ret
=
wrapper_EnumerateLoadedModulesW64
(
pi
.
hProcess
,
aggregate_cb
,
&
aggregation
);
ok
(
ret
,
"EnumerateLoadedModulesW64 failed: %lu
\n
"
,
GetLastError
());
ok
(
ret
,
"EnumerateLoadedModulesW64 failed: %lu
\n
"
,
GetLastError
());
switch
(
get_process_kind
(
pi
.
hProcess
))
{
default:
ok
(
0
,
"Unknown process kind
\n
"
);
break
;
case
PCSKIND_WINE_OLD_WOW64
:
todo_wine
ok
(
aggregation
.
count_32bit
==
1
&&
!
aggregation
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
aggregation
.
count_32bit
,
aggregation
.
count_64bit
);
todo_wine
ok
(
aggregation
.
count_exe
==
1
&&
aggregation
.
count_ntdll
==
0
,
"Wrong kind aggregation count %u %u
\n
"
,
aggregation
.
count_exe
,
aggregation
.
count_ntdll
);
todo_wine
ok
(
aggregation
.
count_systemdir
==
0
&&
aggregation
.
count_wowdir
==
1
,
"Wrong directory aggregation count %u %u
\n
"
,
aggregation
.
count_systemdir
,
aggregation
.
count_wowdir
);
break
;
case
PCSKIND_WOW64
:
todo_wine
todo_wine
ok
(
aggregation
.
count_32bit
==
1
&&
aggregation
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
ok
(
aggregation
.
count_32bit
==
1
&&
aggregation
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
aggregation
.
count_32bit
,
aggregation
.
count_64bit
);
aggregation
.
count_32bit
,
aggregation
.
count_64bit
);
...
@@ -773,7 +791,7 @@ static void test_loaded_modules(void)
...
@@ -773,7 +791,7 @@ static void test_loaded_modules(void)
ok
(
aggregation
.
count_systemdir
>
2
&&
aggregation
.
count_64bit
==
aggregation
.
count_systemdir
&&
aggregation
.
count_wowdir
==
1
,
ok
(
aggregation
.
count_systemdir
>
2
&&
aggregation
.
count_64bit
==
aggregation
.
count_systemdir
&&
aggregation
.
count_wowdir
==
1
,
"Wrong directory aggregation count %u %u
\n
"
,
"Wrong directory aggregation count %u %u
\n
"
,
aggregation
.
count_systemdir
,
aggregation
.
count_wowdir
);
aggregation
.
count_systemdir
,
aggregation
.
count_wowdir
);
}
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
...
@@ -805,6 +823,23 @@ static void test_loaded_modules(void)
...
@@ -805,6 +823,23 @@ static void test_loaded_modules(void)
ret
=
wrapper_EnumerateLoadedModulesW64
(
pi
.
hProcess
,
aggregate_cb
,
&
aggregation2
);
ret
=
wrapper_EnumerateLoadedModulesW64
(
pi
.
hProcess
,
aggregate_cb
,
&
aggregation2
);
ok
(
ret
,
"EnumerateLoadedModulesW64 failed: %lu
\n
"
,
GetLastError
());
ok
(
ret
,
"EnumerateLoadedModulesW64 failed: %lu
\n
"
,
GetLastError
());
switch
(
get_process_kind
(
pi
.
hProcess
))
{
case
PCSKIND_ERROR
:
break
;
case
PCSKIND_WINE_OLD_WOW64
:
todo_wine
ok
(
aggregation2
.
count_32bit
&&
!
aggregation2
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
aggregation2
.
count_32bit
,
aggregation2
.
count_64bit
);
todo_wine
ok
(
aggregation2
.
count_exe
==
2
&&
aggregation2
.
count_ntdll
==
1
,
"Wrong kind aggregation count %u %u
\n
"
,
aggregation2
.
count_exe
,
aggregation2
.
count_ntdll
);
todo_wine
ok
(
aggregation2
.
count_systemdir
==
0
&&
aggregation2
.
count_32bit
==
aggregation2
.
count_wowdir
+
1
&&
aggregation2
.
count_wowdir
>
2
,
"Wrong directory aggregation count %u %u
\n
"
,
aggregation2
.
count_systemdir
,
aggregation2
.
count_wowdir
);
break
;
default:
ok
(
aggregation2
.
count_32bit
&&
aggregation2
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
ok
(
aggregation2
.
count_32bit
&&
aggregation2
.
count_64bit
,
"Wrong bitness aggregation count %u %u
\n
"
,
aggregation2
.
count_32bit
,
aggregation2
.
count_64bit
);
aggregation2
.
count_32bit
,
aggregation2
.
count_64bit
);
todo_wine
todo_wine
...
@@ -814,6 +849,8 @@ static void test_loaded_modules(void)
...
@@ -814,6 +849,8 @@ static void test_loaded_modules(void)
ok
(
aggregation2
.
count_systemdir
>
2
&&
aggregation2
.
count_64bit
==
aggregation2
.
count_systemdir
&&
aggregation2
.
count_wowdir
>
2
,
ok
(
aggregation2
.
count_systemdir
>
2
&&
aggregation2
.
count_64bit
==
aggregation2
.
count_systemdir
&&
aggregation2
.
count_wowdir
>
2
,
"Wrong directory aggregation count %u %u
\n
"
,
"Wrong directory aggregation count %u %u
\n
"
,
aggregation2
.
count_systemdir
,
aggregation2
.
count_wowdir
);
aggregation2
.
count_systemdir
,
aggregation2
.
count_wowdir
);
break
;
}
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ret
=
SymRefreshModuleList
(
pi
.
hProcess
);
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
ok
(
ret
,
"SymRefreshModuleList failed: %lu
\n
"
,
GetLastError
());
...
...
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