fixes
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
BlockStorage/repertory/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@@ -164,7 +164,9 @@ public:
|
||||
|
||||
auto opt_size = utils::file::file{file_path}.size();
|
||||
EXPECT_TRUE(opt_size.has_value());
|
||||
EXPECT_EQ(0U, opt_size.value());
|
||||
if (opt_size.has_value()) {
|
||||
EXPECT_EQ(0U, opt_size.value());
|
||||
}
|
||||
|
||||
EXPECT_EQ(0, close(fd));
|
||||
std::this_thread::sleep_for(SLEEP_SECONDS);
|
||||
@@ -174,10 +176,7 @@ public:
|
||||
|
||||
static auto create_root_file(std::string &file_name) -> std::string {
|
||||
auto file_path = create_file_and_test(file_name);
|
||||
std::cout << file_path << std::endl;
|
||||
|
||||
auto api_path = utils::path::create_api_path(file_name);
|
||||
std::cout << api_path << std::endl;
|
||||
|
||||
meta->set_item_meta(api_path, {
|
||||
{META_UID, "0"},
|
||||
@@ -205,8 +204,9 @@ public:
|
||||
|
||||
for (int i = 0; not unmounted && (i < 50); i++) {
|
||||
std::cout << "unmount command: " << unmount_cmd << std::endl;
|
||||
ASSERT_EQ(0, system(unmount_cmd.c_str()));
|
||||
unmounted = not utils::file::directory{mount_location}.exists();
|
||||
auto res = system(unmount_cmd.c_str());
|
||||
unmounted = res == 0;
|
||||
ASSERT_EQ(0, res);
|
||||
if (not unmounted) {
|
||||
std::this_thread::sleep_for(5s);
|
||||
}
|
||||
|
@@ -581,6 +581,7 @@ TYPED_TEST(fuse_test, can_chown_group_if_owner_and_a_member_of_the_group) {
|
||||
EXPECT_EQ(0, stat64(file_path.c_str(), &unix_st));
|
||||
|
||||
EXPECT_EQ(0, chown(file_path.c_str(), static_cast<uid_t>(-1), getgid()));
|
||||
std::cout << errno << std::endl;
|
||||
std::this_thread::sleep_for(SLEEP_SECONDS);
|
||||
|
||||
struct stat64 unix_st2 {};
|
||||
|
Reference in New Issue
Block a user