- unit tests now work properly
- hopefully github actions workflow should run tests now?
This commit is contained in:
+6
-2
@@ -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 {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user