提交 2f2c26eb 编写于 作者: C chengjinsong2

修改虚假断言

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 cdc6e4dd
...@@ -479,11 +479,7 @@ HWTEST_F(StartupInitUTest, cmdFuncDoCmdTest_006, TestSize.Level0) ...@@ -479,11 +479,7 @@ HWTEST_F(StartupInitUTest, cmdFuncDoCmdTest_006, TestSize.Level0)
dirTmp = nullptr; dirTmp = nullptr;
} }
// delete dir remove(cmdContentStr.c_str());
if (remove(cmdContentStr.c_str()) != 0) {
EXPECT_EQ(0, 0);
}
// chmod success // chmod success
cmdStr = "chmod "; cmdStr = "chmod ";
cmdContentStr = "0440 " + TEST_FILE; cmdContentStr = "0440 " + TEST_FILE;
...@@ -872,10 +868,7 @@ HWTEST_F(StartupInitUTest, cmdFuncDoLoadCfgTest_002, TestSize.Level0) ...@@ -872,10 +868,7 @@ HWTEST_F(StartupInitUTest, cmdFuncDoLoadCfgTest_002, TestSize.Level0)
EXPECT_TRUE(testCfgStat.st_size > 0); EXPECT_TRUE(testCfgStat.st_size > 0);
DoCmd(&curCmdLine); DoCmd(&curCmdLine);
// remove tmp file remove(TEST_CFG_ILLEGAL.c_str());
if (remove(TEST_CFG_ILLEGAL.c_str()) != 0) {
EXPECT_EQ(0, 0);
}
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册