aboutsummaryrefslogtreecommitdiff
path: root/kernel/src
diff options
context:
space:
mode:
authorLukas Oesch <lukasoesch20@gmail.com>2026-03-28 19:14:26 +0100
committerLukas Oesch <lukasoesch20@gmail.com>2026-03-28 19:14:26 +0100
commit8a9bf5a90b7f46d5c615b55a3fc418b419db4926 (patch)
tree5b8a9f8ca84ddea9cb4c48060dc884b2b25a376c /kernel/src
parentfe964c2c9d3fb29223060f99c07ae1ce4e69daae (diff)
downloadteachos-8a9bf5a90b7f46d5c615b55a3fc418b419db4926.tar.xz
teachos-8a9bf5a90b7f46d5c615b55a3fc418b419db4926.zip
improve test
Diffstat (limited to 'kernel/src')
-rw-r--r--kernel/src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp
index 4510240..98c88f2 100644
--- a/kernel/src/main.cpp
+++ b/kernel/src/main.cpp
@@ -132,6 +132,10 @@ auto test_file_lookup() -> void
kstd::os::panic("test code failed");
}
auto ofd5 = vfs.open("/a/b/c");
+ if (!ofd5)
+ {
+ kstd::os::panic("test code failed");
+ }
if (auto ofd6 = vfs.open("x/y/z"))
{