** Verify whether some of the ok / print traces to the debugger made in the NtSystemDebugControl test caused the hangout when the debugger was disabled **

This commit is contained in:
Hermès Bélusca-Maïto 2024-11-22 19:08:30 +01:00
parent b9a1bf5ca9
commit b2ced2281e
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0

View File

@ -203,18 +203,18 @@ DbgPrint("NtSysDbgControl(%lu)\n", Command);
*/
if (Command == SysDbgEnableKernelDebugger)
{
ok(Status == STATUS_SUCCESS || Status == STATUS_INVALID_PARAMETER,
"In test %lu: Status = 0x%08lx, expected 0x%08lx or 0x%08lx\n",
Command, Status, STATUS_SUCCESS, STATUS_INVALID_PARAMETER);
//ok(Status == STATUS_SUCCESS || Status == STATUS_INVALID_PARAMETER,
// "In test %lu: Status = 0x%08lx, expected 0x%08lx or 0x%08lx\n",
// Command, Status, STATUS_SUCCESS, STATUS_INVALID_PARAMETER);
}
else
{
ok_eq_hex_test(Command, Status, STATUS_SUCCESS);
//ok_eq_hex_test(Command, Status, STATUS_SUCCESS);
}
}
else
{
ok_eq_hex_test(Command, Status, STATUS_DEBUGGER_INACTIVE);
//ok_eq_hex_test(Command, Status, STATUS_DEBUGGER_INACTIVE);
}
/* Re-enable or disable the debugger, depending on its original state */
@ -222,8 +222,8 @@ DbgPrint("NtSysDbgControl(%lu)\n", Command);
Command = SysDbgEnableKernelDebugger; // 21
else
Command = SysDbgDisableKernelDebugger; // 22
DbgPrint("NtSysDbgControl(%lu)\n", Command);
Status = TestSystemDebugControl((SYSDBG_COMMAND)Command);
DbgPrint("post - NtSysDbgControl(%lu)\n", Command);
if (!IsVistaOrHigher || IsDebuggerActive)
ok_eq_hex_test(Command, Status, STATUS_SUCCESS);
else