summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_record_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2020-02-03 11:13:19 -0800
committerYabin Cui <yabinc@google.com>2020-02-03 11:13:19 -0800
commitf1cb5a6480a19ed6ee92c59eb327d68d3fc4f2a8 (patch)
treeaeb2457d15a34d0cd1c9aa99c3d617c4f1f09cae /simpleperf/cmd_record_test.cpp
parent12ac200f2e52a3e4eeccb5269354319f124b0001 (diff)
downloadextras-f1cb5a6480a19ed6ee92c59eb327d68d3fc4f2a8.tar.gz
simpleperf: fix presubmit test failure.
Bug: 148772976 Test: run `su 0 simpleperf_unit_test` on aosp_cf_x86_phone-userdebug. Change-Id: I36bddf0520fe9fee2513ae1a8f8bf677ba7ed115
Diffstat (limited to 'simpleperf/cmd_record_test.cpp')
-rw-r--r--simpleperf/cmd_record_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp
index 9443625a..207ec64c 100644
--- a/simpleperf/cmd_record_test.cpp
+++ b/simpleperf/cmd_record_test.cpp
@@ -486,7 +486,7 @@ TEST(record_cmd, dump_kernel_symbols) {
return;
}
TemporaryFile tmpfile;
- ASSERT_TRUE(RunRecordCmd({"-a", "-o", tmpfile.path, "sleep", "1"}));
+ ASSERT_TRUE(RecordCmd()->Run({"-a", "-o", tmpfile.path, "-e", GetDefaultEvent(), "sleep", "1"}));
bool has_kernel_symbols = false;
auto callback = [&](const Symbol&, uint32_t file_type) {
if (file_type == DSO_KERNEL) {