summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-02-14 00:24:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-02-14 00:24:31 +0000
commit6c2b28e4c7af39028b499cc7370fca9e075275a1 (patch)
treec83768ef4639dffa1fb59bfeb96ac30a3aeba09b
parent96eaef2510c31e1b778f447f5fe3d988cabe27ff (diff)
parentb1fa968ef5257f5f5c6b235d2566395839de915c (diff)
downloadextras-6c2b28e4c7af39028b499cc7370fca9e075275a1.tar.gz
Merge "simpleperf: remove cpu option tests." into nougat-mr1-cts-devandroid-cts-7.1_r3
-rw-r--r--simpleperf/cmd_record_test.cpp7
-rw-r--r--simpleperf/cmd_stat_test.cpp7
2 files changed, 0 insertions, 14 deletions
diff --git a/simpleperf/cmd_record_test.cpp b/simpleperf/cmd_record_test.cpp
index 1a468e29..8780cfcc 100644
--- a/simpleperf/cmd_record_test.cpp
+++ b/simpleperf/cmd_record_test.cpp
@@ -193,13 +193,6 @@ TEST(record_cmd, more_than_one_event_types) {
ASSERT_TRUE(RunRecordCmd({"-e", "cpu-cycles", "-e", "cpu-clock"}));
}
-TEST(record_cmd, cpu_option) {
- ASSERT_TRUE(RunRecordCmd({"--cpu", "0"}));
- if (IsRoot()) {
- ASSERT_TRUE(RunRecordCmd({"--cpu", "0", "-a"}));
- }
-}
-
TEST(record_cmd, mmap_page_option) {
ASSERT_TRUE(RunRecordCmd({"-m", "1"}));
ASSERT_FALSE(RunRecordCmd({"-m", "0"}));
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp
index 45ed3dc5..8786d8d3 100644
--- a/simpleperf/cmd_stat_test.cpp
+++ b/simpleperf/cmd_stat_test.cpp
@@ -85,10 +85,3 @@ TEST(stat_cmd, existing_threads) {
TEST(stat_cmd, no_monitored_threads) {
ASSERT_FALSE(StatCmd()->Run({""}));
}
-
-TEST(stat_cmd, cpu_option) {
- ASSERT_TRUE(StatCmd()->Run({"--cpu", "0", "sleep", "1"}));
- if (IsRoot()) {
- ASSERT_TRUE(StatCmd()->Run({"--cpu", "0", "-a", "sleep", "1"}));
- }
-}