24 lines
407 B
Rust
24 lines
407 B
Rust
#![no_std]
|
|
#![no_main]
|
|
#![feature(custom_test_frameworks)]
|
|
#![test_runner(neptune::test_runner)]
|
|
#![reexport_test_harness_main = "test_main"]
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn _start() -> ! {
|
|
test_main();
|
|
|
|
loop {}
|
|
}
|
|
|
|
fn test_runner(tests: &[&dyn Fn()]) {
|
|
unimplemented!();
|
|
}
|
|
|
|
#[panic_handler]
|
|
fn panic(info: &PanicInfo) -> ! {
|
|
neptune::test_panic_handler(info);
|
|
}
|