implements PLN-0058
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good
Intrepid/Prometeu/Runtime/pipeline/pr-master This commit looks good

This commit is contained in:
2026-05-15 06:55:26 +01:00
parent bfe900797f
commit 4d2ea6400d
19 changed files with 499 additions and 281 deletions
@@ -308,12 +308,11 @@ mod tests {
other => panic!("expected AppCrashes state, got {:?}", other),
}
let task = firmware.os.task_manager.get(task_id).expect("task should exist");
let process =
firmware.os.process_manager.get(task.process_id).expect("process should exist");
assert_eq!(task.state, TaskState::Crashed);
assert_eq!(process.state, ProcessState::Crashed);
assert_eq!(firmware.os.lifecycle().task_state(task_id), Some(TaskState::Crashed));
assert_eq!(
firmware.os.lifecycle().process_state_for_task(task_id),
Ok(ProcessState::Crashed)
);
}
#[test]
@@ -351,8 +350,8 @@ mod tests {
firmware.tick(&signals, &mut hardware);
assert!(matches!(firmware.state, FirmwareState::SystemRunning(_)));
assert!(firmware.os.window_manager.focused.is_some());
assert_eq!(firmware.os.window_manager.windows.len(), 1);
assert!(firmware.os.window().focused_window().is_some());
assert_eq!(firmware.os.window().window_count(), 1);
}
#[test]
@@ -364,11 +363,11 @@ mod tests {
firmware.load_cartridge(valid_cartridge(AppMode::Shell));
firmware.tick(&signals, &mut hardware);
let tick_index_before_system_update = firmware.os.vm_runtime.tick_index;
let tick_index_before_system_update = firmware.os.vm().tick_index();
firmware.tick(&signals, &mut hardware);
assert!(matches!(firmware.state, FirmwareState::SystemRunning(_)));
assert_eq!(firmware.os.vm_runtime.tick_index, tick_index_before_system_update + 1);
assert_eq!(firmware.os.vm().tick_index(), tick_index_before_system_update + 1);
}
#[test]