mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
kernel32/tests: Break debugger loop on unexpected result.
Avoid infinite loop that sometimes happen on macOS and make the test spew hundred of thousand of "Test failed" lines.
This commit is contained in:
parent
299490ed7b
commit
6cb63e996e
|
@ -2190,8 +2190,10 @@ static void test_debugger(const char *argv0)
|
|||
{
|
||||
next_event(&ctx, WAIT_EVENT_TIMEOUT);
|
||||
ok (ctx.ev.dwDebugEventCode != EXCEPTION_DEBUG_EVENT, "got exception\n");
|
||||
if (ctx.ev.dwDebugEventCode == EXCEPTION_DEBUG_EVENT) break;
|
||||
}
|
||||
while (ctx.ev.dwDebugEventCode != EXIT_PROCESS_DEBUG_EVENT);
|
||||
if (ctx.ev.dwDebugEventCode != EXIT_PROCESS_DEBUG_EVENT) TerminateProcess(pi.hProcess, 0);
|
||||
|
||||
ret = CloseHandle(event);
|
||||
ok(ret, "CloseHandle failed, last error %ld.\n", GetLastError());
|
||||
|
|
Loading…
Reference in a new issue