diff options
author | Dmitriy Ivanov <dimitry@google.com> | 2015-03-31 11:14:03 -0700 |
---|---|---|
committer | Dimitry Ivanov <dimitry@google.com> | 2015-04-06 21:15:43 +0000 |
commit | aae859cc3ca127d890e853cbf12b731e05624a22 (patch) | |
tree | 159e996dd6756b99fe70371e99a69ec6040e851b /tests/dlext_test.cpp | |
parent | e686df8d839216460f02cf7db6c4e26a13e49afd (diff) | |
download | android_bionic-aae859cc3ca127d890e853cbf12b731e05624a22.tar.gz android_bionic-aae859cc3ca127d890e853cbf12b731e05624a22.tar.bz2 android_bionic-aae859cc3ca127d890e853cbf12b731e05624a22.zip |
Add realpath for soinfo
This change adds realpath to soinfo and
extends limit on filenames from 128 to PATH_MAX.
It also removes soinfo::name field, linker uses
dt_soname instead.
Bug: http://b/19818481
Bug: https://code.google.com/p/android/issues/detail?id=80336
Change-Id: I9cff4cb5bda3ee2bc74e1bbded9594ea7fbe2a08
Diffstat (limited to 'tests/dlext_test.cpp')
-rw-r--r-- | tests/dlext_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dlext_test.cpp b/tests/dlext_test.cpp index 700abff5e..70124180d 100644 --- a/tests/dlext_test.cpp +++ b/tests/dlext_test.cpp @@ -156,9 +156,9 @@ TEST_F(DlExtTest, ExtInfoUseFdWithInvalidOffset) { ASSERT_SUBSTR("dlopen failed: file offset for the library \"libname_placeholder\" is negative", dlerror()); extinfo.library_fd_offset = PAGE_SIZE; - handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); + handle_ = android_dlopen_ext("libname_ignored", RTLD_NOW, &extinfo); ASSERT_TRUE(handle_ == nullptr); - ASSERT_STREQ("dlopen failed: \"libname_placeholder\" has bad ELF magic", dlerror()); + ASSERT_EQ("dlopen failed: \"" + lib_path + "\" has bad ELF magic", dlerror()); close(extinfo.library_fd); } |