Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sam Joan Roque-Worcel
wine
Commits
c9b4210b
Commit
c9b4210b
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
kernel32/tests: Use the actual name of the exe module in toolhelp tests.
parent
1cdccc7d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/kernel32/tests/toolhelp.c
+9
-2
9 additions, 2 deletions
dlls/kernel32/tests/toolhelp.c
with
9 additions
and
2 deletions
dlls/kernel32/tests/toolhelp.c
+
9
−
2
View file @
c9b4210b
...
...
@@ -204,14 +204,14 @@ static void test_thread(DWORD curr_pid, DWORD sub_pcs_pid)
static
const
char
*
curr_expected_modules
[]
=
{
"kernel32.dll"
,
"kernel32_test.exe"
"kernel32.dll"
,
/* FIXME: could test for ntdll on NT and Wine */
};
static
const
char
*
sub_expected_modules
[]
=
{
"kernel32.dll"
,
"kernel32_test.exe"
,
"kernel32.dll"
,
"shell32.dll"
/* FIXME: could test for ntdll on NT and Wine */
};
...
...
@@ -283,6 +283,7 @@ START_TEST(toolhelp)
{
DWORD
pid
=
GetCurrentProcessId
();
int
r
;
char
*
p
,
module
[
MAX_PATH
];
char
buffer
[
MAX_PATH
];
SECURITY_ATTRIBUTES
sa
;
PROCESS_INFORMATION
info
;
...
...
@@ -330,6 +331,12 @@ START_TEST(toolhelp)
w
=
WaitForSingleObject
(
ev1
,
WAIT_TIME
);
ok
(
w
==
WAIT_OBJECT_0
,
"Failed to wait on sub-process startup
\n
"
);
GetModuleFileNameA
(
0
,
module
,
sizeof
(
module
)
);
if
(
!
(
p
=
strrchr
(
module
,
'\\'
)))
p
=
module
;
else
p
++
;
curr_expected_modules
[
0
]
=
p
;
sub_expected_modules
[
0
]
=
p
;
test_process
(
pid
,
info
.
dwProcessId
);
test_thread
(
pid
,
info
.
dwProcessId
);
test_module
(
pid
,
curr_expected_modules
,
NUM_OF
(
curr_expected_modules
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment