summaryrefslogtreecommitdiff
path: root/kernel/tests
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/tests')
-rw-r--r--kernel/tests/test01.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/kernel/tests/test01.rs b/kernel/tests/test01.rs
new file mode 100644
index 0000000..933d689
--- /dev/null
+++ b/kernel/tests/test01.rs
@@ -0,0 +1,25 @@
+#![no_main]
+#![feature(compiler_builtins_lib)]
+#![feature(custom_test_frameworks)]
+#![feature(abi_x86_interrupt)]
+#![feature(panic_info_message)]
+#![test_runner(crate::testing::serial_test_runner)]
+#![no_std]
+
+use kernel;
+use kernel::io::qemu;
+
+#[no_mangle]
+extern "C" fn _start() -> ! {
+ kernel::io::panic_screen::show(Some(&format_args!("hey bro")));
+
+
+ loop {}
+}
+
+#[cfg(test)]
+#[panic_handler]
+#[no_mangle]
+extern "C" fn panic_handler(info: &core::panic::PanicInfo) -> ! {
+ loop {}
+}