summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_stat_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-07-27 23:54:12 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-07-27 23:54:12 +0000
commit5b2c208b64a8014c135999abd01fedb9e7345a0c (patch)
treee722d04c360d9054ea6904bfd1b85a45d49fd160 /simpleperf/cmd_stat_test.cpp
parentfb1c30d7595b4f65b429cdec75d0c26decf25af3 (diff)
parentcab924fae5ec24da5b62b1f7253c772ab51031e2 (diff)
downloadextras-5b2c208b64a8014c135999abd01fedb9e7345a0c.tar.gz
Merge \"simpleperf: use libevent in stat command.\"
am: cab924fae5 Change-Id: Id3f2e39a1aebddcdc6e548595b394d4eedcf3e0f
Diffstat (limited to 'simpleperf/cmd_stat_test.cpp')
-rw-r--r--simpleperf/cmd_stat_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/simpleperf/cmd_stat_test.cpp b/simpleperf/cmd_stat_test.cpp
index 65b474d7..c8fe5985 100644
--- a/simpleperf/cmd_stat_test.cpp
+++ b/simpleperf/cmd_stat_test.cpp
@@ -112,5 +112,6 @@ TEST(stat_cmd, auto_generated_summary) {
}
TEST(stat_cmd, duration_option) {
- ASSERT_TRUE(StatCmd()->Run({"--duration", "1.2"}));
+ ASSERT_TRUE(
+ StatCmd()->Run({"--duration", "1.2", "-p", std::to_string(getpid())}));
}