summaryrefslogtreecommitdiff
path: root/kernel/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tests')
-rw-r--r--kernel/tests/stack_overflow.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/tests/stack_overflow.rs b/kernel/tests/stack_overflow.rs
index dc53537..eedb3b5 100644
--- a/kernel/tests/stack_overflow.rs
+++ b/kernel/tests/stack_overflow.rs
@@ -14,7 +14,7 @@ use kernel::io::qemu;
extern "C" fn _start() -> ! {
kernel::init();
unsafe {
- exceptions::expect_fault(interrupts::Interrupts::PAGE_FAULT);
+ exceptions::expect_fault(interrupts::Interrupts::NOT_PRESENT);
}
_loop(0);
panic!("PAGE_FAULT not caught");
@@ -35,6 +35,6 @@ fn _loop(i: u128) -> u128 {
#[panic_handler]
#[no_mangle]
extern "C" fn panic_handler(info: &core::panic::PanicInfo) -> ! {
- kernel::testing::serial_should_panic(info);
+ kernel::testing::serial_panic(info);
loop {}
}