mirror of
https://github.com/mii443/nel_os.git
synced 2025-08-22 16:15:38 +00:00
27 lines
444 B
Rust
27 lines
444 B
Rust
#![no_std]
|
|
#![no_main]
|
|
#![feature(custom_test_frameworks)]
|
|
#![test_runner(nel_os::test_runner)]
|
|
#![reexport_test_harness_main = "test_main"]
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
use nel_os::println;
|
|
|
|
#[unsafe(no_mangle)]
|
|
pub extern "C" fn _start() -> ! {
|
|
test_main();
|
|
|
|
loop {}
|
|
}
|
|
|
|
#[panic_handler]
|
|
fn panic(info: &PanicInfo) -> ! {
|
|
nel_os::test_panic_handler(info)
|
|
}
|
|
|
|
#[test_case]
|
|
fn test_println() {
|
|
println!("test_println output");
|
|
}
|