新增测试用例

Signed-off-by: j00383476 <jinhai2@huawei.com>
This commit is contained in:
j00383476 2024-07-25 09:05:31 +08:00
parent 638ef3327e
commit 53883f8167
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ std::string Navigation::GetWinId(std::string processId) const
const std::string cmd = "hidumper -s WindowManagerService -a '-a'";
FILE *fd = popen(cmd.c_str(), "r");
if (fd == nullptr) {
wid = -1;
return wid = -1;
}
int lineNum = 0;
char buf[1024] = {'\0'};

View File

@ -67,7 +67,7 @@ HWTEST_F(ByTraceTest, ThreadGetTraceTest, TestSize.Level1)
std::string traceFile = file + time + ".ftrace";
std::string traceCmdExe = cmdString + cmdStringEnd + traceFile;
auto ret = SPUtils::LoadCmd(traceCmdExe, result);
bytrace.ThreadGetTrace();
byTrace.ThreadGetTrace();
EXPECT_EQ(ret, true);
}