This commit is contained in:
parent
a4693f8acc
commit
0f7dfc6ce7
@ -1,39 +1,3 @@
|
|||||||
// static void rmdir_and_test(const std::string &directory_path) {
|
|
||||||
// std::cout << __FUNCTION__ << std::endl;
|
|
||||||
// int ret = 0;
|
|
||||||
// for (auto i = 0; ((ret = rmdir(directory_path.c_str())) != 0) && (i < 20);
|
|
||||||
// i++) {
|
|
||||||
// std::this_thread::sleep_for(100ms);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// EXPECT_EQ(0, ret);
|
|
||||||
// std::this_thread::sleep_for(SLEEP_SECONDS);
|
|
||||||
//
|
|
||||||
// EXPECT_FALSE(utils::file::is_directory(directory_path));
|
|
||||||
// EXPECT_FALSE(utils::file::is_file(directory_path));
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// static void test_mkdir(const std::string & /* api_path */,
|
|
||||||
// const std::string &directory_path) {
|
|
||||||
// std::cout << __FUNCTION__ << std::endl;
|
|
||||||
// EXPECT_EQ(0, mkdir(directory_path.c_str(),
|
|
||||||
// S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP));
|
|
||||||
//
|
|
||||||
// EXPECT_TRUE(utils::file::is_directory(directory_path));
|
|
||||||
// EXPECT_FALSE(utils::file::is_file(directory_path));
|
|
||||||
//
|
|
||||||
// struct stat64 unix_st {};
|
|
||||||
// stat64(directory_path.c_str(), &unix_st);
|
|
||||||
//
|
|
||||||
// EXPECT_EQ(getuid(), unix_st.st_uid);
|
|
||||||
// EXPECT_EQ(getgid(), unix_st.st_gid);
|
|
||||||
//
|
|
||||||
// EXPECT_EQ(static_cast<std::uint32_t>(S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP
|
|
||||||
// |
|
|
||||||
// S_IXGRP),
|
|
||||||
// ACCESSPERMS & unix_st.st_mode);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// static void test_write_and_read(const std::string & /* api_path */,
|
// static void test_write_and_read(const std::string & /* api_path */,
|
||||||
// const std::string &file_path) {
|
// const std::string &file_path) {
|
||||||
// std::cout << __FUNCTION__ << std::endl;
|
// std::cout << __FUNCTION__ << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user