diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-04 03:01:20 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2018-07-04 03:01:20 +0000 |
commit | 83e2a83dd41ae9c7376e7735a6345dae1c71406a (patch) | |
tree | 1c6c387374681631b9bbf2c90e94be58cbc2ceda | |
parent | 932eb00d242d4bbb8fedbf07fe8cefd7b4b70ac9 (diff) | |
parent | b8d86c0051a0113659edf2bf7ea80b6d318e01f5 (diff) | |
download | extras-pie-dr1-release.tar.gz |
Snap for 4876468 from b8d86c0051a0113659edf2bf7ea80b6d318e01f5 to pi-dr1-releaseandroid-9.0.0_r12android-9.0.0_r11pie-dr1-release
Change-Id: I262a45bdb491e2333aae553cadaa6048ae86c41d
-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"})); |