提交 22795157 编写于 作者: O openharmony_ci 提交者: Gitee

!1389 [hiviewdfx子系统]更新测试用例

Merge pull request !1389 from zhuqingxi/master
......@@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1)
string fileinfo;
fileinfo = ReadFile("/data/log/faultlog/temp/" + faultloggerfile);
std::vector<std::string> para = {"Pid:" + to_string(pid), "Uid:0",
"Process name:", "/data/local/tmp/faultloggertest",
"Process name:", "/data/local/tmp/ActsFaultLoggerTest",
"Reason:Signal:SIGILL", "Fault thread Info:",
"Tid:" + to_string(pid), "Name:faultloggertest"};
"Tid:" + to_string(pid), "Name:ActsFaultLogger"};
if (!fileinfo.empty()) {
result = CheckInfo(para, fileinfo);
} else {
......
......@@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) {
bool result = false;
sleep(90);
std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest";
cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) {
......@@ -183,7 +183,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test1, Function|MediumTest|Level1) {
DoXCollieTest();
sleep(90);
std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest";
cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) {
......@@ -210,7 +210,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test2, Function|MediumTest|Level1) {
bool result = false;
sleep(110);
std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest";
cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) {
......@@ -314,4 +314,4 @@ HWTEST_F(HiCollieCppTest, Xcollie_interface_test6, Function|MediumTest|Level1)
{
int id = XCollie::GetInstance().SetTimer("Timer", 5, nullptr, nullptr, XCOLLIE_FLAG_NOOP + 100);
ASSERT_TRUE(id != INVALID_ID);
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册