diff options
| author | Christopher Ferris <cferris@google.com> | 2019-03-13 18:16:05 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-03-13 18:16:05 +0000 |
| commit | 9a00f596d3376ed750eb58cf07c04d575b540c2b (patch) | |
| tree | e979e89aeee15bd5c075eaa7d6e5b2d8703dffd1 /libunwindstack/tests/MapInfoCreateMemoryTest.cpp | |
| parent | e61e8c6b628e4ce0e4c5e5b579af0eead322c247 (diff) | |
| parent | 86f2d9d943aa61efea1193682f35d5daccf78681 (diff) | |
Merge "Fix missing offset for apk."
Diffstat (limited to 'libunwindstack/tests/MapInfoCreateMemoryTest.cpp')
| -rw-r--r-- | libunwindstack/tests/MapInfoCreateMemoryTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libunwindstack/tests/MapInfoCreateMemoryTest.cpp b/libunwindstack/tests/MapInfoCreateMemoryTest.cpp index a66685a26c..2ddadef377 100644 --- a/libunwindstack/tests/MapInfoCreateMemoryTest.cpp +++ b/libunwindstack/tests/MapInfoCreateMemoryTest.cpp @@ -178,7 +178,7 @@ TEST_F(MapInfoCreateMemoryTest, file_backed_non_zero_offset_partial_file) { std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); ASSERT_TRUE(memory.get() != nullptr); ASSERT_EQ(0U, info.elf_offset); - EXPECT_EQ(0U, info.elf_start_offset); + EXPECT_EQ(0x1000U, info.elf_start_offset); // Read the valid part of the file. std::vector<uint8_t> buffer(0x100); @@ -202,7 +202,7 @@ TEST_F(MapInfoCreateMemoryTest, file_backed_non_zero_offset_partial_file_whole_e std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); ASSERT_TRUE(memory.get() != nullptr); ASSERT_EQ(0U, info.elf_offset); - EXPECT_EQ(0U, info.elf_start_offset); + EXPECT_EQ(0x1000U, info.elf_start_offset); // Verify the memory is a valid elf. uint8_t e_ident[SELFMAG + 1]; @@ -219,7 +219,7 @@ TEST_F(MapInfoCreateMemoryTest, file_backed_non_zero_offset_partial_file_whole_e std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); ASSERT_TRUE(memory.get() != nullptr); ASSERT_EQ(0U, info.elf_offset); - EXPECT_EQ(0U, info.elf_start_offset); + EXPECT_EQ(0x2000U, info.elf_start_offset); // Verify the memory is a valid elf. uint8_t e_ident[SELFMAG + 1]; |
