summaryrefslogtreecommitdiff
path: root/kernel/tests/boot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tests/boot.rs')
-rw-r--r--kernel/tests/boot.rs4
1 files changed, 4 insertions, 0 deletions
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 {}
}