diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-28 19:14:26 +0100 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-03-28 19:14:26 +0100 |
| commit | 8a9bf5a90b7f46d5c615b55a3fc418b419db4926 (patch) | |
| tree | 5b8a9f8ca84ddea9cb4c48060dc884b2b25a376c /kernel | |
| parent | fe964c2c9d3fb29223060f99c07ae1ce4e69daae (diff) | |
| download | teachos-8a9bf5a90b7f46d5c615b55a3fc418b419db4926.tar.xz teachos-8a9bf5a90b7f46d5c615b55a3fc418b419db4926.zip | |
improve test
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/src/main.cpp | 4 |
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")) { |
