winfsp unit tests and fixes
This commit is contained in:
parent
20ab95380a
commit
47a6bdbcd2
@ -145,7 +145,7 @@ TYPED_TEST(winfsp_test, rename_can_rename_dir_if_dest_does_not_exist) {
|
||||
|
||||
EXPECT_TRUE(::MoveFileExA(dir_path.c_str(), dir_path2.c_str(), 0));
|
||||
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir2_path.c_str()));
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path2.c_str()));
|
||||
}
|
||||
|
||||
TYPED_TEST(winfsp_test, rename_dir_fails_if_dest_exists_and_replace_is_false) {
|
||||
@ -167,7 +167,7 @@ TYPED_TEST(winfsp_test, rename_dir_fails_if_dest_exists_and_replace_is_false) {
|
||||
EXPECT_EQ(ERROR_ACCESS_DENIED, ::GetLastError());
|
||||
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path.c_str()));
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir2_path.c_str()));
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path2.c_str()));
|
||||
}
|
||||
|
||||
TYPED_TEST(winfsp_test, rename_dir_fails_if_dest_exists_and_replace_is_true) {
|
||||
@ -190,7 +190,7 @@ TYPED_TEST(winfsp_test, rename_dir_fails_if_dest_exists_and_replace_is_true) {
|
||||
EXPECT_EQ(ERROR_ACCESS_DENIED, ::GetLastError());
|
||||
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path.c_str()));
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir2_path.c_str()));
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path2.c_str()));
|
||||
}
|
||||
|
||||
TYPED_TEST(winfsp_test,
|
||||
@ -224,7 +224,7 @@ TYPED_TEST(winfsp_test,
|
||||
EXPECT_TRUE(::RemoveDirectoryA(dir_path.c_str()));
|
||||
}
|
||||
|
||||
TYPED_TEST(winfsp_test, winfsp_test,
|
||||
TYPED_TEST(winfsp_test,
|
||||
rename_dir_fails_directory_is_not_empty_and_replace_is_true) {
|
||||
if (this->current_provider == provider_type::s3) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user