diff --git a/repertory/repertory_test/src/fuse_drive_directory_test.cpp b/repertory/repertory_test/src/fuse_drive_directory_test.cpp index 76fd539b..24026565 100644 --- a/repertory/repertory_test/src/fuse_drive_directory_test.cpp +++ b/repertory/repertory_test/src/fuse_drive_directory_test.cpp @@ -30,8 +30,7 @@ TYPED_TEST(fuse_test, can_create_and_remove_directory) { auto dir_name = std::string{"dir"}; auto dir_path = utils::path::combine(this->mount_location, {dir_name}); - EXPECT_EQ(0, mkdir(dir_path.c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | - S_IWGRP | S_IXGRP)); + EXPECT_EQ(0, mkdir(dir_path.c_str(), S_IRUSR | S_IXUSR)); EXPECT_TRUE(utils::file::directory(dir_path).exists()); EXPECT_FALSE(utils::file::file(dir_path).exists()); @@ -42,11 +41,11 @@ TYPED_TEST(fuse_test, can_create_and_remove_directory) { EXPECT_EQ(getgid(), unix_st.st_gid); EXPECT_EQ(getuid(), unix_st.st_uid); - EXPECT_EQ(static_cast(S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | - S_IWGRP | S_IXGRP), + EXPECT_EQ(static_cast(S_IRUSR | S_IXUSR), ACCESSPERMS & unix_st.st_mode); EXPECT_TRUE(utils::file::directory(dir_path).remove()); + EXPECT_FALSE(utils::file::directory(dir_path).exists()); } } // namespace repertory