diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-22 21:36:46 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-07-22 21:36:46 +0000 |
commit | 805221527eb90f1b416fbb2df52498830376d038 (patch) | |
tree | d777ce6124fd8654d23aa0bba6ae7abaae77a2ab /simpleperf/cmd_stat_test.cpp | |
parent | 143f3a3f29c7447f31d12f4d5e12073be44e0524 (diff) | |
parent | 53fdddd7943a9c96bcb2ebe77bce5713b0a95940 (diff) | |
download | extras-805221527eb90f1b416fbb2df52498830376d038.tar.gz |
Merge \"simpleperf: add --duration for stat/record command.\"
am: 53fdddd794
Change-Id: Ibc911eb9be4666dae97ae179248863a0622541a8
Diffstat (limited to 'simpleperf/cmd_stat_test.cpp')
-rw-r--r-- | simpleperf/cmd_stat_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp index 684e50fc..65b474d7 100644 --- a/simpleperf/cmd_stat_test.cpp +++ b/simpleperf/cmd_stat_test.cpp @@ -110,3 +110,7 @@ TEST(stat_cmd, auto_generated_summary) { // Check if the summary of cpu-clock is generated. ASSERT_NE(s.npos, s.find("cpu-clock", pos)); } + +TEST(stat_cmd, duration_option) { + ASSERT_TRUE(StatCmd()->Run({"--duration", "1.2"})); +} |