mirror of
https://gitee.com/openharmony/developtools_hiperf
synced 2024-11-27 09:40:42 +00:00
fix arm64 build issue
Signed-off-by: wenlong12 <wenlong12@huawei.com> Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
parent
b6236c0605
commit
baf65914ec
@ -85,7 +85,7 @@ void SubCommandDumpTest::TestDumpCommand(const std::string &option, bool expect)
|
||||
std::string stringOut = stdoutRecord.Stop();
|
||||
|
||||
printf("command : %s(run %" PRId64 " ms) return %s(expect %s)\n", cmdString.c_str(),
|
||||
costMs.count(), ret ? "true" : "false", expect ? "true" : "false");
|
||||
(uint64_t)costMs.count(), ret ? "true" : "false", expect ? "true" : "false");
|
||||
EXPECT_EQ(expect, ret);
|
||||
if (expect) {
|
||||
EXPECT_EQ(SubStringCount(stringOut, "HILOG/E"), 0u);
|
||||
|
@ -88,7 +88,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
|
||||
chrono::steady_clock::now() - startTime);
|
||||
std::string stringOut = stdoutRecord.Stop();
|
||||
|
||||
printf("run %" PRId64 " ms return %s(expect %s)\n", costMs.count(), ret ? "true" : "false",
|
||||
printf("run %" PRId64 " ms return %s(expect %s)\n", (uint64_t)costMs.count(), ret ? "true" : "false",
|
||||
expect ? "true" : "false");
|
||||
EXPECT_EQ(expect, ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user