diff options
author | Yabin Cui <yabinc@google.com> | 2016-08-05 12:11:26 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2017-02-13 11:54:48 -0800 |
commit | b1fa968ef5257f5f5c6b235d2566395839de915c (patch) | |
tree | c83768ef4639dffa1fb59bfeb96ac30a3aeba09b | |
parent | 96eaef2510c31e1b778f447f5fe3d988cabe27ff (diff) | |
download | extras-b1fa968ef5257f5f5c6b235d2566395839de915c.tar.gz |
simpleperf: remove cpu option tests.
The cpu option tests are flaky because Cpu 0 can be offlined.
Bug: http://b/30389972
Change-Id: Ie9f57dcde957be245167c957eb029ab37496471e
Test: run simpleperf cts test.
(cherry picked from commit 279f3fecc4dfe670027b20bd01eb1b85f0e75f6a)
-rw-r--r-- | simpleperf/cmd_record_test.cpp | 7 | ||||
-rw-r--r-- | simpleperf/cmd_stat_test.cpp | 7 |
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"})); - } -} |