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
088e27c8
Commit
088e27c8
authored
Sep 20, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Skip the debugger test if the child process is not loaded at the right address.
parent
87e3cd66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
exception.c
dlls/ntdll/tests/exception.c
+12
-3
No files found.
dlls/ntdll/tests/exception.c
View file @
088e27c8
...
...
@@ -596,7 +596,7 @@ static void test_debugger(void)
return
;
}
sprintf
(
cmdline
,
"%s %s %s
"
,
my_argv
[
0
],
my_argv
[
1
],
"debuggee"
);
sprintf
(
cmdline
,
"%s %s %s
%p"
,
my_argv
[
0
],
my_argv
[
1
],
"debuggee"
,
&
test_stage
);
ret
=
CreateProcess
(
NULL
,
cmdline
,
NULL
,
NULL
,
FALSE
,
DEBUG_PROCESS
,
NULL
,
NULL
,
&
si
,
&
pi
);
ok
(
ret
,
"could not create child process error: %u
\n
"
,
GetLastError
());
if
(
!
ret
)
...
...
@@ -699,7 +699,7 @@ static void test_debugger(void)
}
}
else
ok
(
FALSE
,
"unexpected stage %
d
\n
"
,
stage
);
ok
(
FALSE
,
"unexpected stage %
x
\n
"
,
stage
);
status
=
pNtSetContextThread
(
pi
.
hThread
,
&
ctx
);
ok
(
!
status
,
"NtSetContextThread failed with 0x%x
\n
"
,
status
);
...
...
@@ -828,8 +828,17 @@ START_TEST(exception)
}
my_argc
=
winetest_get_mainargs
(
&
my_argv
);
if
(
my_argc
>=
3
)
if
(
my_argc
>=
4
)
{
void
*
addr
;
sscanf
(
my_argv
[
3
],
"%p"
,
&
addr
);
if
(
addr
!=
&
test_stage
)
{
skip
(
"child process not mapped at same address (%p/%p)
\n
"
,
&
test_stage
,
addr
);
return
;
}
/* child must be run under a debugger */
if
(
!
pNtCurrentTeb
()
->
Peb
->
BeingDebugged
)
{
...
...
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