diff options
| author | Marcel Braun <marcel.braun@ost.ch> | 2026-05-05 14:46:21 +0200 |
|---|---|---|
| committer | Marcel Braun <marcel.braun@ost.ch> | 2026-05-05 14:46:21 +0200 |
| commit | 88ebc124ed0e703e02dfe96006d0d490e83de4fe (patch) | |
| tree | 20d2c9a78b8b0f2344e22168cd20857a4e79e363 /kernel | |
| parent | 2ab9d6ffbc4aad8ab3a393bd32191e3c07103c0a (diff) | |
| download | kernel-88ebc124ed0e703e02dfe96006d0d490e83de4fe.tar.xz kernel-88ebc124ed0e703e02dfe96006d0d490e83de4fe.zip | |
Fix vfs tests
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/src/filesystem/vfs.tests.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/src/filesystem/vfs.tests.cpp b/kernel/src/filesystem/vfs.tests.cpp index 829c9d2..cbd67be 100644 --- a/kernel/src/filesystem/vfs.tests.cpp +++ b/kernel/src/filesystem/vfs.tests.cpp @@ -140,8 +140,8 @@ SCENARIO_METHOD(kernel::tests::filesystem::storage_boot_module_vfs_fixture, "VFS THEN("mount with invalid path fails") { REQUIRE(vfs.do_mount("/dev/ram16", "") == kernel::filesystem::vfs::operation_result::invalid_path); - REQUIRE(vfs.do_mount("/dev/ram16", "information") == kernel::filesystem::vfs::operation_result::invalid_path); - REQUIRE(vfs.do_mount("/dev/ram16", "/information/") == kernel::filesystem::vfs::operation_result::invalid_path); + REQUIRE(vfs.do_mount("/dev/ram16", "information") == + kernel::filesystem::vfs::operation_result::mount_point_not_found); } THEN("mount with non-existent source path fails") @@ -159,8 +159,7 @@ SCENARIO_METHOD(kernel::tests::filesystem::storage_boot_module_vfs_fixture, "VFS THEN("unmount with invalid path fails") { REQUIRE(vfs.unmount("") == kernel::filesystem::vfs::operation_result::invalid_path); - REQUIRE(vfs.unmount("information") == kernel::filesystem::vfs::operation_result::invalid_path); - REQUIRE(vfs.unmount("/information/") == kernel::filesystem::vfs::operation_result::invalid_path); + REQUIRE(vfs.unmount("information") == kernel::filesystem::vfs::operation_result::mount_point_not_found); } THEN("unmounting non-existent mount point returns expected error code") |
