diff options
Diffstat (limited to 'libunwindstack/tests/ElfTestUtils.cpp')
-rw-r--r-- | libunwindstack/tests/ElfTestUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/tests/ElfTestUtils.cpp b/libunwindstack/tests/ElfTestUtils.cpp index 069386b4e..69163ac94 100644 --- a/libunwindstack/tests/ElfTestUtils.cpp +++ b/libunwindstack/tests/ElfTestUtils.cpp | |||
@@ -47,7 +47,7 @@ void TestInitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine_type) { | |||
47 | ehdr->e_ehsize = sizeof(Ehdr); | 47 | ehdr->e_ehsize = sizeof(Ehdr); |
48 | } | 48 | } |
49 | 49 | ||
50 | static std::string GetTestFileDirectory() { | 50 | std::string TestGetFileDirectory() { |
51 | std::string exec(testing::internal::GetArgvs()[0]); | 51 | std::string exec(testing::internal::GetArgvs()[0]); |
52 | auto const value = exec.find_last_of('/'); | 52 | auto const value = exec.find_last_of('/'); |
53 | if (value == std::string::npos) { | 53 | if (value == std::string::npos) { |
@@ -102,7 +102,7 @@ void TestInitGnuDebugdata(uint32_t elf_class, uint32_t machine, bool init_gnu_de | |||
102 | offset = symtab_offset + 0x100; | 102 | offset = symtab_offset + 0x100; |
103 | if (init_gnu_debugdata) { | 103 | if (init_gnu_debugdata) { |
104 | // Read in the compressed elf data and copy it in. | 104 | // Read in the compressed elf data and copy it in. |
105 | name = GetTestFileDirectory(); | 105 | name = TestGetFileDirectory(); |
106 | if (elf_class == ELFCLASS32) { | 106 | if (elf_class == ELFCLASS32) { |
107 | name += "elf32.xz"; | 107 | name += "elf32.xz"; |
108 | } else { | 108 | } else { |