//! Boots with nothing initialised and checks printing works. #![no_std] #![no_main] #![feature(custom_test_frameworks)] #![test_runner(rust_kernel::test_runner)] #![reexport_test_harness_main = "test_main"] use core::panic::PanicInfo; use rust_kernel::println; #[unsafe(no_mangle)] // a plain `_start`: we don't need BootInfo here pub extern "C" fn _start() -> ! { test_main(); rust_kernel::hlt_loop(); } #[panic_handler] fn panic(info: &PanicInfo) -> ! { rust_kernel::test_panic_handler(info) } #[test_case] fn test_println() { println!("test_println output"); }