aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/filesystem.tests.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-08-26 23:01:14 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-08-26 23:01:14 +0200
commitc9711c4ea8e5fccc23255e9f6ae86b15006aa6ea (patch)
tree78fdbf66ef2d0bf3f3ac0c468f5ba0d9c326c9b5 /kernel/kapi/filesystem.tests.cpp
parent4016fed5815434202aeca74359db146417d78a1b (diff)
downloadkernel-c9711c4ea8e5fccc23255e9f6ae86b15006aa6ea.tar.xz
kernel-c9711c4ea8e5fccc23255e9f6ae86b15006aa6ea.zip
kapi/fs: add stub implementation of read_directory
Diffstat (limited to 'kernel/kapi/filesystem.tests.cpp')
-rw-r--r--kernel/kapi/filesystem.tests.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/kapi/filesystem.tests.cpp b/kernel/kapi/filesystem.tests.cpp
index d23255c3..b2e39967 100644
--- a/kernel/kapi/filesystem.tests.cpp
+++ b/kernel/kapi/filesystem.tests.cpp
@@ -292,6 +292,15 @@ SCENARIO_METHOD(kernel::tests::vfs::storage_boot_module_vfs_fixture, "Kapi files
REQUIRE(kapi::filesystem::umount("/information"));
}
+
+ THEN("listing the contents of a directory fails")
+ {
+ auto directory = kapi::filesystem::open("/information");
+ REQUIRE(directory);
+
+ auto buffer = std::vector<kapi::filesystem::directory_entry>{10};
+ REQUIRE_FALSE(kapi::filesystem::read_directory(*directory, {}, buffer));
+ }
}
}