[PATCH 2/2] kernel32/tests: Ignore exceptions while testing winedbg.

Francois Gouget fgouget at codeweavers.com
Fri Feb 12 10:14:52 CST 2021


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 at codeweavers.com>
---
 dlls/kernel32/tests/debugger.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/kernel32/tests/debugger.c b/dlls/kernel32/tests/debugger.c
index 118984eec75..af9f8250e19 100644
--- a/dlls/kernel32/tests/debugger.c
+++ b/dlls/kernel32/tests/debugger.c
@@ -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);
         }
-- 
2.20.1



More information about the wine-devel mailing list