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
b7225671
Commit
b7225671
authored
Apr 04, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/debugger: Fix a failing test (on Wine).
The failing test was garbled by remaining debug events from previous test. Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
3cbba43d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
debugger.c
dlls/kernel32/tests/debugger.c
+16
-1
No files found.
dlls/kernel32/tests/debugger.c
View file @
b7225671
...
...
@@ -1189,7 +1189,6 @@ static void test_debug_loop_wow64(void)
default:
ok
(
0
,
"Unexpected event: %lu
\n
"
,
ev
.
dwDebugEventCode
);
/* fall through */
case
EXIT_PROCESS_DEBUG_EVENT
:
case
EXIT_THREAD_DEBUG_EVENT
:
ret
=
ContinueDebugEvent
(
ev
.
dwProcessId
,
ev
.
dwThreadId
,
DBG_CONTINUE
);
ok
(
ret
,
"ContinueDebugEvent failed, last error %#lx.
\n
"
,
GetLastError
());
...
...
@@ -1205,7 +1204,23 @@ static void test_debug_loop_wow64(void)
ok
(
ret
,
"GetExitCodeProcess failed: %lu
\n
"
,
GetLastError
());
ok
(
ec
!=
STILL_ACTIVE
,
"GetExitCodeProcess still active
\n
"
);
}
for
(;;)
{
DEBUG_EVENT
ev
;
ret
=
WaitForDebugEvent
(
&
ev
,
2000
);
if
(
!
ret
||
ev
.
dwDebugEventCode
==
EXIT_PROCESS_DEBUG_EVENT
)
break
;
switch
(
ev
.
dwDebugEventCode
)
{
default:
ok
(
0
,
"Unexpected event: %lu
\n
"
,
ev
.
dwDebugEventCode
);
/* fall through */
case
EXIT_THREAD_DEBUG_EVENT
:
ret
=
ContinueDebugEvent
(
ev
.
dwProcessId
,
ev
.
dwThreadId
,
DBG_CONTINUE
);
ok
(
ret
,
"ContinueDebugEvent failed, last error %#lx.
\n
"
,
GetLastError
());
break
;
}
}
ret
=
CloseHandle
(
pi
.
hThread
);
ok
(
ret
,
"CloseHandle failed, last error %#lx.
\n
"
,
GetLastError
());
ret
=
CloseHandle
(
pi
.
hProcess
);
...
...
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