[RTL][KERNEL32][ROSAUTOTEST] Disable debug prompts during autotest

This fixes timeouts + reboots for user mode assertion failures on the testbots. As a bonus it now shows a backtrace.
This commit is contained in:
Timo Kreuzer 2024-09-10 20:00:24 +03:00
parent 301675c112
commit fd3c571d36
4 changed files with 53 additions and 1 deletions

View file

@ -42,6 +42,12 @@ RtlAssert(IN PVOID FailedAssertion,
(PSTR)FileName,
LineNumber);
/* Check for reactos specific flag (set by rosautotest) */
if (RtlGetNtGlobalFlags() & FLG_DISABLE_DEBUG_PROMPTS)
{
RtlRaiseStatus(STATUS_ASSERTION_FAILURE);
}
/* Prompt for action */
DbgPrompt("Break repeatedly, break Once, Ignore, "
"terminate Process or terminate Thread (boipt)? ",