2022-09-01 06:25:26 +00:00
|
|
|
#![no_std]
|
|
|
|
|
#![no_main]
|
|
|
|
|
#![feature(custom_test_frameworks)]
|
2022-11-22 08:42:26 +00:00
|
|
|
#![test_runner(jinux_frame::test_runner)]
|
2022-09-01 06:25:26 +00:00
|
|
|
#![reexport_test_harness_main = "test_main"]
|
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
|
|
2023-03-06 07:32:25 +00:00
|
|
|
#[no_mangle]
|
2023-07-19 02:08:59 +00:00
|
|
|
pub fn jinux_main() -> ! {
|
2023-03-06 07:32:25 +00:00
|
|
|
jinux_frame::init();
|
2022-09-01 06:25:26 +00:00
|
|
|
test_main();
|
|
|
|
|
loop {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[panic_handler]
|
|
|
|
|
fn panic(info: &PanicInfo) -> ! {
|
2022-11-22 08:42:26 +00:00
|
|
|
jinux_frame::test_panic_handler(info)
|
2022-09-01 06:25:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[test_case]
|
|
|
|
|
fn test_println() {
|
2022-11-22 08:42:26 +00:00
|
|
|
jinux_frame::println!("test_println output");
|
2022-09-01 06:25:26 +00:00
|
|
|
}
|