lupos/lupos/tests/basic_boot.rs
2025-07-04 13:42:45 +02:00

28 lines
536 B
Rust

#![no_std]
#![no_main]
#![feature(custom_test_frameworks)]
#![test_runner(lupos::test_runner)]
#![reexport_test_harness_main = "test_main"]
use core::panic::PanicInfo;
use lupos::println;
#[test_case]
fn test_println() {
println!("test_println output");
}
#[no_mangle] // don't mangle the name of this function
pub extern "C" fn _start() -> ! {
test_main();
loop {}
}
fn test_runner(_tests: &[&dyn Fn()]) {
unimplemented!();
}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
lupos::test_panic_handler(info)
}