fuse unit tests and fixes
This commit is contained in:
parent
6f6f8d4d52
commit
43ce2d13ec
@ -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<std::uint32_t>(S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP |
|
||||
S_IWGRP | S_IXGRP),
|
||||
EXPECT_EQ(static_cast<std::uint32_t>(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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user