summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_stat_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'simpleperf/cmd_stat_test.cpp')
-rw-r--r--simpleperf/cmd_stat_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp
index 6a7a1cdb..0ed49bcb 100644
--- a/simpleperf/cmd_stat_test.cpp
+++ b/simpleperf/cmd_stat_test.cpp
@@ -44,3 +44,7 @@ TEST_F(StatCommandTest, system_wide_option) {
TEST_F(StatCommandTest, verbose_option) {
ASSERT_TRUE(stat_cmd->Run({"stat", "--verbose", "sleep", "1"}));
}
+
+TEST_F(StatCommandTest, tracepoint_event) {
+ ASSERT_TRUE(stat_cmd->Run({"stat", "-a", "-e", "sched:sched_switch", "sleep", "1"}));
+}