提交 5a0ede7c 编写于 作者: Z zhuqingxi

update hicollie faultlogger testcases

Signed-off-by: Nzhuqingxi <zhuqingxi@huawei.com>
上级 075f1601
...@@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1) ...@@ -130,9 +130,9 @@ HWTEST_F(faultloggertest, Faultlogger_Faultdetect1, Function|MediumTest|Level1)
string fileinfo; string fileinfo;
fileinfo = ReadFile("/data/log/faultlog/temp/" + faultloggerfile); fileinfo = ReadFile("/data/log/faultlog/temp/" + faultloggerfile);
std::vector<std::string> para = {"Pid:" + to_string(pid), "Uid:0", 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:", "Reason:Signal:SIGILL", "Fault thread Info:",
"Tid:" + to_string(pid), "Name:faultloggertest"}; "Tid:" + to_string(pid), "Name:ActsFaultLogger"};
if (!fileinfo.empty()) { if (!fileinfo.empty()) {
result = CheckInfo(para, fileinfo); result = CheckInfo(para, fileinfo);
} else { } else {
......
...@@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) { ...@@ -156,7 +156,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test, Function|MediumTest|Level1) {
bool result = false; bool result = false;
sleep(90); sleep(90);
std::vector<std::string> cmdret; std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest"; cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen; unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret); cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) { if (cmdretlen == 1) {
...@@ -183,7 +183,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test1, Function|MediumTest|Level1) { ...@@ -183,7 +183,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test1, Function|MediumTest|Level1) {
DoXCollieTest(); DoXCollieTest();
sleep(90); sleep(90);
std::vector<std::string> cmdret; std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest"; cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen; unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret); cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) { if (cmdretlen == 1) {
...@@ -210,7 +210,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test2, Function|MediumTest|Level1) { ...@@ -210,7 +210,7 @@ HWTEST_F(HiCollieCppTest, Xcollie_watchdog_test2, Function|MediumTest|Level1) {
bool result = false; bool result = false;
sleep(110); sleep(110);
std::vector<std::string> cmdret; std::vector<std::string> cmdret;
cmd = "ps -A |grep HiCollieCppTest"; cmd = "ps -A |grep ActsHiCollieCpp";
unsigned long cmdretlen; unsigned long cmdretlen;
cmdretlen = ExecCmdWithRet(cmd, cmdret); cmdretlen = ExecCmdWithRet(cmd, cmdret);
if (cmdretlen == 1) { if (cmdretlen == 1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册