summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Yi <byi@google.com>2018-11-28 18:35:04 -0800
committerBill Yi <byi@google.com>2018-11-28 18:35:04 -0800
commit91d400d17458d35c4b31cf0c3beb564326a27c9a (patch)
tree9bdce3f8116b2d678f9d5ddce02f390cd82d2791
parente750c56852dfb02aefd0bd7a61901fd4972d3767 (diff)
parent1ea2b2bb423ee2b16e5f02117ead086f3e00a193 (diff)
downloadextras-91d400d17458d35c4b31cf0c3beb564326a27c9a.tar.gz
Merge pi-qpr1-release PQ1A.181105.017.A1 to pi-platform-release
Change-Id: I171c9c28f68e3f26e173dca9dc3fe0bb1bd68c95
-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"}));