mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-27 00:51:47 +00:00
新增测试用例
Signed-off-by: j00383476 <jinhai2@huawei.com>
This commit is contained in:
parent
638ef3327e
commit
53883f8167
@ -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'};
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user