summaryrefslogtreecommitdiff
path: root/simpleperf/cmd_report_test.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-11-13 14:00:45 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-11-13 14:00:45 -0800
commit03d1b6a4a4f54be44d2a1f9055426d9b6785cc60 (patch)
tree38e1bdf0a8a0de623e8bc1574af502c50eaec2aa /simpleperf/cmd_report_test.cpp
parent2d629b3c5f7c89ddf81429332b49970e22ca10a8 (diff)
parent2da01f61fd7f7765477e56244dfada608a607f01 (diff)
downloadextras-03d1b6a4a4f54be44d2a1f9055426d9b6785cc60.tar.gz
Merge "simpleperf: fix a bug setting symfs dir."
am: 2da01f61fd Change-Id: I3a0fe2cf1f65ef2f33ffa7153e37e9842647796f
Diffstat (limited to 'simpleperf/cmd_report_test.cpp')
-rw-r--r--simpleperf/cmd_report_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/simpleperf/cmd_report_test.cpp b/simpleperf/cmd_report_test.cpp
index 03a67bd5..a7670300 100644
--- a/simpleperf/cmd_report_test.cpp
+++ b/simpleperf/cmd_report_test.cpp
@@ -351,6 +351,11 @@ TEST_F(ReportCommandTest, report_dumped_symbols_with_symfs_dir) {
ASSERT_NE(content.find("main"), std::string::npos);
}
+TEST_F(ReportCommandTest, report_without_symfs_dir) {
+ TemporaryFile tmpfile;
+ ASSERT_TRUE(ReportCmd()->Run({"-i", GetTestData(PERF_DATA), "-o", tmpfile.path}));
+}
+
TEST_F(ReportCommandTest, report_sort_vaddr_in_file) {
Report(PERF_DATA, {"--sort", "vaddr_in_file"});
ASSERT_TRUE(success);