kernel32/tests: Ignore exceptions while testing winedbg.

test_ExitCode() has one test that makes sure winedbg is non-interactive
when ShowCrashDialog is 0. This causes winedbg to output an "unhandled
exception" message which should not be counted as a test failure.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-02-12 17:14:52 +01:00 committed by Alexandre Julliard
parent 4ac37c4e24
commit 5007f6fa35
1 changed files with 2 additions and 0 deletions

View File

@ -754,7 +754,9 @@ static void test_ExitCode(void)
reg_save_value crash_dlg_value;
save_value(hkeyWinedbg, "ShowCrashDialog", &crash_dlg_value);
RegSetValueExA(hkeyWinedbg, "ShowCrashDialog", 0, REG_DWORD, (BYTE *)&zero, sizeof(DWORD));
ignore_exceptions(TRUE);
crash_and_winedbg(hkey, test_exe);
ignore_exceptions(FALSE);
restore_value(hkeyWinedbg, &crash_dlg_value);
RegCloseKey(hkeyWinedbg);
}