diff --git a/hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp b/hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp index 5870de2257c19270d2699a1678846105913375de..c2de8ace629b5f46453fbf6f2d651f991ca7babb 100755 --- a/hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp +++ b/hiviewdfx/faultloggertest/faultloggercpptest/faultloggertest.cpp @@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1) string fileinfo; fileinfo = ReadFile("/data/log/faultlog/temp/" + faultloggerfile); std::vector 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 { diff --git a/hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp b/hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp index 13ef8e00d7f7daefd15e548fbf6a1db65b208739..27eff834a34a476053d9435ed688fab3f4a17ef9 100755 --- a/hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp +++ b/hiviewdfx/hicollietest/hicolliecpptest/HiCollieCppTest.cpp @@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) { bool result = false; sleep(90); std::vector 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 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 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 +}