fuse unit tests and fixes

This commit is contained in:
Scott E. Graves 2024-11-08 10:32:37 -06:00
parent 74109d1195
commit a231c2afaf

View File

@ -30,8 +30,8 @@ TYPED_TEST(fuse_test, can_create_and_remove_directory) {
auto dir_name = std::string{"dir"} + std::to_string(++this->idx); auto dir_name = std::string{"dir"} + std::to_string(++this->idx);
auto dir_path = utils::path::combine(this->mount_location, {dir_name}); auto dir_path = utils::path::combine(this->mount_location, {dir_name});
EXPECT_EQ(0, mkdir(dir_path.c_str(), EXPECT_EQ(0, mkdir(dir_path.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP |
S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP)); S_IWGRP | S_IXGRP));
EXPECT_TRUE(utils::file::is_directory(dir_path)); EXPECT_TRUE(utils::file::is_directory(dir_path));
EXPECT_FALSE(utils::file::is_file(dir_path)); EXPECT_FALSE(utils::file::is_file(dir_path));
@ -43,7 +43,7 @@ TYPED_TEST(fuse_test, can_create_and_remove_directory) {
EXPECT_EQ(getuid(), unix_st.st_uid); EXPECT_EQ(getuid(), unix_st.st_uid);
EXPECT_EQ(static_cast<std::uint32_t>(S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | EXPECT_EQ(static_cast<std::uint32_t>(S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP |
S_IXGRP), S_IWGRP | S_IXGRP),
ACCESSPERMS & unix_st.st_mode); ACCESSPERMS & unix_st.st_mode);
} }
} // namespace repertory } // namespace repertory