From 496ccaaf750a4ec1c537c463eff56108e1cc0bb4 Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Sun, 18 Apr 2021 19:01:54 +0200 Subject: Further cleanup * Bump x86_64 dep to version 0.1.14 * Rewrite LOCAL_APIC handling * Remove warnings --- kernel/tests/boot.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kernel/tests/boot.rs') diff --git a/kernel/tests/boot.rs b/kernel/tests/boot.rs index 3a65ff6..c6c0de0 100644 --- a/kernel/tests/boot.rs +++ b/kernel/tests/boot.rs @@ -4,6 +4,7 @@ #![feature(panic_info_message)] #![test_runner(kernel::testing::serial_test_runner)] #![reexport_test_harness_main = "test_main"] +#![allow(unreachable_code)] #![no_std] use kernel; @@ -14,6 +15,7 @@ extern "C" fn _start() -> ! { kernel::init(); test_main(); + #[allow(clippy::empty_loop)] loop {} } @@ -25,6 +27,7 @@ fn boot() { #[test_case] fn poweroff() { qemu::exit_qemu(qemu::QemuExitCode::Success); + loop {} panic!("Qemu did not exit"); } @@ -33,5 +36,6 @@ fn poweroff() { #[no_mangle] extern "C" fn panic_handler(info: &core::panic::PanicInfo) -> ! { kernel::testing::serial_panic(info); + #[allow(clippy::empty_loop)] loop {} } -- cgit v1.2.3-70-g09d2