diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2014-09-05 16:42:53 -0700 |
---|---|---|
committer | Dmitriy Ivanov <dimitry@google.com> | 2014-09-08 13:02:50 -0700 |
commit | 14669a939d113214a4a20b9318fca0992d5453f0 (patch) | |
tree | 160b15f09cb7edc2da5b02e47cf3d5ce1461df97 /linker/tests | |
parent | 320a01d51693408dad859094ca52e5f315ff1d15 (diff) | |
download | bionic-14669a939d113214a4a20b9318fca0992d5453f0.zip bionic-14669a939d113214a4a20b9318fca0992d5453f0.tar.gz bionic-14669a939d113214a4a20b9318fca0992d5453f0.tar.bz2 |
Load libraries in breadth-first order
This patch fixes the problem with symbol search order
for dlsym(RTLD_DEFAULT/RTLD_NEXT, .) by loading libraries
and ld_preloads in correct order.
Bug: https://code.google.com/p/android/issues/detail?id=74255
Change-Id: If1ba5c807322409faa914e27ecb675e2c4541f0d
Attempt: 2
Diffstat (limited to 'linker/tests')
-rw-r--r-- | linker/tests/linked_list_test.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/linker/tests/linked_list_test.cpp b/linker/tests/linked_list_test.cpp index a555edb..09ad687 100644 --- a/linker/tests/linked_list_test.cpp +++ b/linker/tests/linked_list_test.cpp @@ -139,7 +139,6 @@ TEST(linked_list, copy_to_array) { const char* buf[max_size]; memset(buf, 0, sizeof(buf)); - ASSERT_EQ(0U, list.size()); ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); ASSERT_EQ(nullptr, buf[0]); @@ -149,7 +148,6 @@ TEST(linked_list, copy_to_array) { list.push_back("d"); memset(buf, 0, sizeof(buf)); - ASSERT_EQ(4U, list.size()); ASSERT_EQ(2U, list.copy_to_array(buf, 2)); ASSERT_STREQ("a", buf[0]); ASSERT_STREQ("b", buf[1]); @@ -166,7 +164,6 @@ TEST(linked_list, copy_to_array) { list.remove_if([](const char* c) { return *c != 'c'; }); - ASSERT_EQ(1U, list.size()); ASSERT_EQ(1U, list.copy_to_array(buf, max_size)); ASSERT_STREQ("c", buf[0]); ASSERT_EQ(nullptr, buf[1]); @@ -177,7 +174,6 @@ TEST(linked_list, copy_to_array) { return *c == 'c'; }); - ASSERT_EQ(0U, list.size()); ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); ASSERT_EQ(nullptr, buf[0]); } |