diff options
author | Yabin Cui <yabinc@google.com> | 2018-05-01 17:31:36 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-07-03 11:12:04 -0700 |
commit | b8d86c0051a0113659edf2bf7ea80b6d318e01f5 (patch) | |
tree | 1c6c387374681631b9bbf2c90e94be58cbc2ceda | |
parent | 932eb00d242d4bbb8fedbf07fe8cefd7b4b70ac9 (diff) | |
download | extras-pie-dr1-dev.tar.gz |
simpleperf: fix test on APCT.pie-dr1-dev
Bug: http://b/77470883
Test: run adb shell
Test: /data/local/tmp/simpleperf_unit_test/simpleperf_unit_test.
Change-Id: I640ad76b68842045f6ecdcb3cf686b7823d7d5db
(cherry picked from commit 03a31c13168f6502883e8beb4dbc76bc064a54a0)
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp index 7f208862..31f17278 100644 --- a/simpleperf/cmd_record_test.cpp +++ b/simpleperf/cmd_record_test.cpp @@ -270,7 +270,10 @@ TEST(record_cmd, existing_threads) { ASSERT_TRUE(RunRecordCmd({"-t", tid_list})); } -TEST(record_cmd, no_monitored_threads) { ASSERT_FALSE(RecordCmd()->Run({""})); } +TEST(record_cmd, no_monitored_threads) { + TemporaryFile tmpfile; + ASSERT_FALSE(RecordCmd()->Run({"-o", tmpfile.path})); +} TEST(record_cmd, more_than_one_event_types) { ASSERT_TRUE(RunRecordCmd({"-e", "cpu-cycles,cpu-clock"})); |