diff options
author | Yabin Cui <yabinc@google.com> | 2018-04-18 19:32:06 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2018-04-18 19:32:06 -0700 |
commit | 92c4cb1e80909889293f487ca95225cb2ae89384 (patch) | |
tree | a4fd987999816b82e2cf726f0066acfd0da315d7 /simpleperf/dso_test.cpp | |
parent | ad82aa57ad69b7a110ebbc6a4ced08f930e52d96 (diff) | |
download | extras-92c4cb1e80909889293f487ca95225cb2ae89384.tar.gz |
simpleperf: fix some errors testing on windows.
Bug: none.
Test: run simpleperf_unit_test.
Test: run test.py.
Change-Id: I9c77ce1704d7d7038c450a5f85c569dc2a728b92
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 cc441939..0fd4929a 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\n", build_id.ToString().c_str(), android::base::Basename(tmpfile.path).c_str()); + "%s=%s\r\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)); |