summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_report_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-07-21 18:32:53 -0700
committerYabin Cui <yabinc@google.com>2016-07-22 14:16:58 -0700
commit8a599d7c95f2a8207fb3fe90e824aab1f30abe62 (patch)
tree3c8490acb33c1b25af5f4043d94e261cdd98201a /simpleperf/cmd_report_test.cpp
parenta33edd664d194e03ca25220f8657e2610449d632 (diff)
downloadextras-8a599d7c95f2a8207fb3fe90e824aab1f30abe62.tar.gz
simpleperf: add --duration for stat/record command.
Also fix a bug in ReportCommandTest.callgraph_option. Bug: http://b/30292111 Change-Id: I21ced0c8aa7ec10c60c4fc1ddc6e5dfd256feeb1 Test: run simpleperf_unit_test.
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r--simpleperf/cmd_report_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp
index d6231bf9..e0b35bf0 100644
--- a/simpleperf/cmd_report_test.cpp
+++ b/simpleperf/cmd_report_test.cpp
@@ -159,7 +159,7 @@ static bool CheckCallerMode(std::vector<std::string>& lines) {
TEST_F(ReportCommandTest, callgraph_option) {
Report(CALLGRAPH_FP_PERF_DATA, {"-g"});
ASSERT_TRUE(success);
- ASSERT_TRUE(CheckCalleeMode(lines));
+ ASSERT_TRUE(CheckCallerMode(lines));
Report(CALLGRAPH_FP_PERF_DATA, {"-g", "callee"});
ASSERT_TRUE(success);
ASSERT_TRUE(CheckCalleeMode(lines));