aboutsummaryrefslogtreecommitdiff
path: root/tests/dlfcn_test.cpp
diff options
context:
space:
mode:
authorDimitry Ivanov <dimitry@google.com>2017-02-27 12:17:47 -0800
committerDimitry Ivanov <dimitry@google.com>2017-02-27 14:16:04 -0800
commit35c8e3b1251af62897a9babd693e2b1be5676160 (patch)
tree3cc1d7cfe239740c04f29d35058048bea7b47c9f /tests/dlfcn_test.cpp
parent5f41ce25c60df2012b58846940dfac58dce50e59 (diff)
downloadbionic-35c8e3b1251af62897a9babd693e2b1be5676160.tar.gz
Fix greylist exception to account for linked namespaces
Do not load second copy of libraries that are supposed to be provided by linked namespaces. Also do not print error in the log if caller tries to open shared library using absolute path for apps targeting N+. Bug: http://b/35454141 Bug: http://b/26833548 Bug: http://b/35338922 Test: run bionic-unit-tests --gtest_filter=dl* Change-Id: Icf3aeedff18d287d2ba0b3df3808b100f3ef5f7a
Diffstat (limited to 'tests/dlfcn_test.cpp')
-rw-r--r--tests/dlfcn_test.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/dlfcn_test.cpp b/tests/dlfcn_test.cpp
index 48fb6d1d2..0f2417024 100644
--- a/tests/dlfcn_test.cpp
+++ b/tests/dlfcn_test.cpp
@@ -916,11 +916,6 @@ TEST(dlfcn, dlopen_executable_by_absolute_path) {
#endif
}
-#if defined(__LP64__)
-#define PATH_TO_SYSTEM_LIB "/system/lib64/"
-#else
-#define PATH_TO_SYSTEM_LIB "/system/lib/"
-#endif
#if defined (__aarch64__)
#define ALTERNATE_PATH_TO_SYSTEM_LIB "/system/lib/arm64/"
#elif defined (__arm__)