- unit tests now work properly

- hopefully github actions workflow should run tests now?
This commit is contained in:
FantasyPvP
2023-12-01 16:05:14 +00:00
parent 568711e27d
commit 80bf5b968e
8 changed files with 51 additions and 226 deletions
+6 -2
View File
@@ -25,11 +25,15 @@ fn panic(info: &PanicInfo) -> ! {
CrystalOS::test_panic_handler(info)
}
entry_point!(main);
fn main(boot_info: &'static BootInfo) -> ! {
CrystalOS::start(boot_info);
#[cfg(test)]
test_main();
// runs the 'mainloop' of the OS;
let mut executor = Executor::new();
executor.spawn(Task::new(shell::command_handler()));
@@ -37,8 +41,8 @@ fn main(boot_info: &'static BootInfo) -> ! {
executor.try_run();
}
#[cfg(test)]
test_main();
loop {}
}