summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_stat_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-08-05 12:11:26 -0700
committerYabin Cui <yabinc@google.com>2016-08-05 13:45:33 -0700
commit279f3fecc4dfe670027b20bd01eb1b85f0e75f6a (patch)
treeabb6b3bb300486a5cd76d507a1fb3b8997c44968 /simpleperf/cmd_stat_test.cpp
parent2b29c4cea03712d4a32a6e606c13595986cca235 (diff)
downloadextras-279f3fecc4dfe670027b20bd01eb1b85f0e75f6a.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.
Diffstat (limited to 'simpleperf/cmd_stat_test.cpp')
-rw-r--r--simpleperf/cmd_stat_test.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp
index 0f2345e8..6944ce2b 100644
--- a/simpleperf/cmd_stat_test.cpp
+++ b/simpleperf/cmd_stat_test.cpp
@@ -82,11 +82,6 @@ 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"}));
- TEST_IN_ROOT(ASSERT_TRUE(StatCmd()->Run({"--cpu", "0", "-a", "sleep", "1"})));
-}
-
TEST(stat_cmd, group_option) {
ASSERT_TRUE(
StatCmd()->Run({"--group", "cpu-cycles,cpu-clock", "sleep", "1"}));