summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-07-04 03:01:20 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-07-04 03:01:20 +0000
commit83e2a83dd41ae9c7376e7735a6345dae1c71406a (patch)
tree1c6c387374681631b9bbf2c90e94be58cbc2ceda
parent932eb00d242d4bbb8fedbf07fe8cefd7b4b70ac9 (diff)
parentb8d86c0051a0113659edf2bf7ea80b6d318e01f5 (diff)
downloadextras-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.cpp5
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"}));