diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-02 09:51:44 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-02 09:52:13 +0200 |
| commit | f7ff847498d629c05bb206b41a172f6735e2afe6 (patch) | |
| tree | 874d35673d59d0f1e4ebcf01d61d9160ba655f9c /kernel/kapi | |
| parent | 0c01a95325b26151ff3c9a70142f5dc83ff7d53f (diff) | |
| download | teachos-f7ff847498d629c05bb206b41a172f6735e2afe6.tar.xz teachos-f7ff847498d629c05bb206b41a172f6735e2afe6.zip | |
kernel/tests: clean up implementation structure
Diffstat (limited to 'kernel/kapi')
| -rw-r--r-- | kernel/kapi/system.tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/kapi/system.tests.cpp b/kernel/kapi/system.tests.cpp index ee31c51..687053e 100644 --- a/kernel/kapi/system.tests.cpp +++ b/kernel/kapi/system.tests.cpp @@ -1,7 +1,7 @@ #include "kapi/system.hpp" +#include "kernel/test_support/cio.hpp" #include "kernel/test_support/cpu.hpp" -#include "kernel/test_support/log_buffer.hpp" #include <kstd/print> @@ -13,7 +13,7 @@ SCENARIO("Kernel testing kapi::system shims", "[support]") { WHEN("a the system panics") { - kernel::tests::log_buffer::clear(); + kernel::tests::cio::log_buffer().clear(); THEN("the correct exception is thrown") { @@ -23,7 +23,7 @@ SCENARIO("Kernel testing kapi::system shims", "[support]") THEN("the message is appended to the log buffer") { CHECK_THROWS(kapi::system::panic("[kernel:tests] Test Panic")); - REQUIRE(kernel::tests::log_buffer::flat_messages().contains("[kernel:tests] Test Panic")); + REQUIRE(kernel::tests::cio::log_buffer().flat_messages().contains("[kernel:tests] Test Panic")); } } } |
