修正测试用例

Signed-off-by: 张智勇 <zhangzhiyong43@huawei.com>
This commit is contained in:
张智勇 2024-11-05 10:19:24 +08:00
parent 4c6f3f5e59
commit 9b390c9b06

View File

@ -175,7 +175,7 @@ HWTEST_F(PrintCupsClientTest, PrintCupsClientTest_0004, TestSize.Level1)
printCupsClient.CopyDirectory(srcDir, destDir);
EXPECT_EQ(std::filesystem::is_regular_file(
std::string(destDir) + "PrintCupsClientTest/PrintCupsClientTestFileName"),
std::string(destDir) + "/PrintCupsClientTest/PrintCupsClientTestFileName"),
true);
EXPECT_GE(std::filesystem::remove_all(std::filesystem::current_path() / srcDir), 0);
EXPECT_GE(std::filesystem::remove_all(std::filesystem::current_path() / destDir), 0);