diff options
author | Yabin Cui <yabinc@google.com> | 2018-04-19 17:06:24 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-04-19 18:28:40 -0700 |
commit | 2969a9e6379e776f1e43b625b7b7387efff2e47c (patch) | |
tree | 7701c7fb76dd45016adba6ed34b5b967fb5a0a2b /simpleperf/dso_test.cpp | |
parent | 1b3ca90fc5fb4ef2cae3857c2171f2e812d12b7f (diff) | |
download | extras-2969a9e6379e776f1e43b625b7b7387efff2e47c.tar.gz |
simpleperf: use binary mode for build_id_list.
As suggested in comments of
https://android-review.googlesource.com/c/platform/system/extras/+/667472.
Bug: none
Test: run test.py.
Change-Id: I55882f1cb07d87a5e09b75ab7ef901e478d614de
Diffstat (limited to 'simpleperf/dso_test.cpp')
-rw-r--r-- | simpleperf/dso_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/dso_test.cpp b/simpleperf/dso_test.cpp index 0fd4929a..cc441939 100644 --- a/simpleperf/dso_test.cpp +++ b/simpleperf/dso_test.cpp @@ -35,7 +35,7 @@ TEST(DebugElfFileFinder, use_build_id_list) { ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); BuildId build_id(ELF_FILE_BUILD_ID); std::string build_id_list = android::base::StringPrintf( - "%s=%s\r\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); + "%s=%s\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); std::string build_id_list_file = std::string(tmpdir.path) + "/build_id_list"; ASSERT_TRUE(android::base::WriteStringToFile(build_id_list, build_id_list_file)); |