diff options
| author | Lukas Oesch <lukas.oesch@ost.ch> | 2026-05-12 08:58:18 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukas.oesch@ost.ch> | 2026-05-12 08:58:18 +0200 |
| commit | fee33c0b2e2ab91a008bec16e143fba755b51974 (patch) | |
| tree | 4a88dfc1c2fbab3ce7d670e4289bdaa5df77352d /kernel/src/filesystem/mount.tests.cpp | |
| parent | 5853b580c74411ecf196d241449411e0d01f0532 (diff) | |
| parent | ac5213633721fcf0e72da814d7ef70c51090c3f9 (diff) | |
| download | kernel-fee33c0b2e2ab91a008bec16e143fba755b51974.tar.xz kernel-fee33c0b2e2ab91a008bec16e143fba755b51974.zip | |
Merge branch 'refactoring' into 'develop-BA-FS26'
Refactoring
See merge request teachos/kernel!32
Diffstat (limited to 'kernel/src/filesystem/mount.tests.cpp')
| -rw-r--r-- | kernel/src/filesystem/mount.tests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/src/filesystem/mount.tests.cpp b/kernel/src/filesystem/mount.tests.cpp index d630464..58e9bab 100644 --- a/kernel/src/filesystem/mount.tests.cpp +++ b/kernel/src/filesystem/mount.tests.cpp @@ -21,12 +21,12 @@ SCENARIO("Mount construction", "[filesystem][mount]") WHEN("constructing a mount with the filesystem and root dentry") { - auto mount = kernel::filesystem::mount{root_dentry, root_dentry, fs, "/", nullptr}; + auto mount = kernel::filesystem::mount{root_dentry, root_dentry, fs, nullptr}; THEN("the mount has the correct filesystem, root dentry, mount dentry, and mount path") { REQUIRE(mount.get_filesystem() == fs); - REQUIRE(mount.root_dentry() == root_dentry); + REQUIRE(mount.get_root_dentry() == root_dentry); REQUIRE(mount.get_mount_dentry() == root_dentry); REQUIRE(mount.get_mount_path() == "/"); } @@ -41,7 +41,7 @@ SCENARIO("Mount construction", "[filesystem][mount]") { THEN("the constructor panics") { - REQUIRE_THROWS_AS((kernel::filesystem::mount{root_dentry, root_dentry, nullptr, "/", nullptr}), + REQUIRE_THROWS_AS((kernel::filesystem::mount{root_dentry, root_dentry, nullptr, nullptr}), kernel::tests::cpu::halt); } } |
