diff options
author | Android Merger <noreply-android-build-merger@google.com> | 2018-11-30 19:38:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-11-30 19:38:07 +0000 |
commit | 0337d0949e20d318a47e300dadc512ffaad46695 (patch) | |
tree | 9bdce3f8116b2d678f9d5ddce02f390cd82d2791 | |
parent | ce622830056e17dca52c157145c24ad212429f89 (diff) | |
parent | 0732a3f81cc30d1a9472e1801469ade1dc4259eb (diff) | |
download | extras-0337d0949e20d318a47e300dadc512ffaad46695.tar.gz |
Merge "Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release am: 91d400d174" into pie-gsi
-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"})); |