diff options
-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"})); - } -} |