From b4f7b4f3c045aea3369c38d22a5b715517e6f8cd Mon Sep 17 00:00:00 2001 From: bQUARKz Date: Mon, 15 Jun 2026 11:59:09 +0100 Subject: [PATCH] clean up debugger platform tests --- .../host/prometeu-host-desktop-winit/src/debugger.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/crates/host/prometeu-host-desktop-winit/src/debugger.rs b/crates/host/prometeu-host-desktop-winit/src/debugger.rs index 29ecf6cd..9bb1ea92 100644 --- a/crates/host/prometeu-host-desktop-winit/src/debugger.rs +++ b/crates/host/prometeu-host-desktop-winit/src/debugger.rs @@ -398,17 +398,13 @@ mod tests { let mut firmware = Firmware::new(None); let mut platform = TestPlatform::new(); - debugger.handle_command(DebugCommand::Pause, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Pause, &mut firmware, &mut platform); assert!(firmware.os.vm().paused()); - debugger.handle_command(DebugCommand::Resume, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Resume, &mut firmware, &mut platform); assert!(!firmware.os.vm().paused()); - debugger.handle_command( - DebugCommand::StepFrame, - &mut firmware, - platform.local_hardware_mut(), - ); + debugger.handle_command(DebugCommand::StepFrame, &mut firmware, &mut platform); assert!(!firmware.os.vm().paused()); assert!(firmware.os.vm().debug_step_requested()); } @@ -422,7 +418,7 @@ mod tests { debugger.waiting_for_start = true; firmware.os.vm().set_paused(true); - debugger.handle_command(DebugCommand::Start, &mut firmware, platform.local_hardware_mut()); + debugger.handle_command(DebugCommand::Start, &mut firmware, &mut platform); assert!(!debugger.waiting_for_start); assert!(!firmware.os.vm().paused());