Commit 5007f6fa authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4ac37c4e
...@@ -754,7 +754,9 @@ static void test_ExitCode(void) ...@@ -754,7 +754,9 @@ static void test_ExitCode(void)
reg_save_value crash_dlg_value; reg_save_value crash_dlg_value;
save_value(hkeyWinedbg, "ShowCrashDialog", &crash_dlg_value); save_value(hkeyWinedbg, "ShowCrashDialog", &crash_dlg_value);
RegSetValueExA(hkeyWinedbg, "ShowCrashDialog", 0, REG_DWORD, (BYTE *)&zero, sizeof(DWORD)); RegSetValueExA(hkeyWinedbg, "ShowCrashDialog", 0, REG_DWORD, (BYTE *)&zero, sizeof(DWORD));
ignore_exceptions(TRUE);
crash_and_winedbg(hkey, test_exe); crash_and_winedbg(hkey, test_exe);
ignore_exceptions(FALSE);
restore_value(hkeyWinedbg, &crash_dlg_value); restore_value(hkeyWinedbg, &crash_dlg_value);
RegCloseKey(hkeyWinedbg); RegCloseKey(hkeyWinedbg);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment