anos/tests/basic_boot.rs

26 lines
429 B
Rust
Raw Normal View History

2021-12-09 11:51:38 +00:00
#![no_std]
#![no_main]
#![feature(custom_test_frameworks)]
#![test_runner(anos::test_runner)]
#![reexport_test_harness_main = "test_main"]
use anos::println;
2022-01-13 04:11:03 +00:00
use core::panic::PanicInfo;
2021-12-09 11:51:38 +00:00
#[no_mangle]
pub extern "C" fn _start() -> ! {
test_main();
loop {}
}
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
anos::test_panic_handler(info)
}
#[test_case]
fn test_println() {
println!("test_println output");
}