clean up debugger platform tests
This commit is contained in:
parent
9cf9fa6163
commit
b4f7b4f3c0
@ -398,17 +398,13 @@ mod tests {
|
|||||||
let mut firmware = Firmware::new(None);
|
let mut firmware = Firmware::new(None);
|
||||||
let mut platform = TestPlatform::new();
|
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());
|
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());
|
assert!(!firmware.os.vm().paused());
|
||||||
|
|
||||||
debugger.handle_command(
|
debugger.handle_command(DebugCommand::StepFrame, &mut firmware, &mut platform);
|
||||||
DebugCommand::StepFrame,
|
|
||||||
&mut firmware,
|
|
||||||
platform.local_hardware_mut(),
|
|
||||||
);
|
|
||||||
assert!(!firmware.os.vm().paused());
|
assert!(!firmware.os.vm().paused());
|
||||||
assert!(firmware.os.vm().debug_step_requested());
|
assert!(firmware.os.vm().debug_step_requested());
|
||||||
}
|
}
|
||||||
@ -422,7 +418,7 @@ mod tests {
|
|||||||
debugger.waiting_for_start = true;
|
debugger.waiting_for_start = true;
|
||||||
firmware.os.vm().set_paused(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!(!debugger.waiting_for_start);
|
||||||
assert!(!firmware.os.vm().paused());
|
assert!(!firmware.os.vm().paused());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user