am 587afa2e: am 88923ba4: am 0b10ffb4: Merge "Fix dlsym_failure NULL handle test"

* commit '587afa2efc040c40e0be3811ad663269c9ffc637':
  Fix dlsym_failure NULL handle test
This commit is contained in:
Dmitriy Ivanov 2014-05-22 18:27:56 +00:00 committed by Android Git Automerger
commit 53f857b235

View File

@ -101,17 +101,13 @@ TEST(dlfcn, dlsym_failures) {
void* sym;
// lp64 RTLD_DEFAULT=(void*)0
#if !defined(__LP64__)
// NULL handle.
#if defined(__BIONIC__) && !defined(__LP64__)
// RTLD_DEFAULT in lp32 bionic is not (void*)0
// so it can be distinguished from the NULL handle.
sym = dlsym(NULL, "test");
ASSERT_TRUE(sym == NULL);
#if defined(__BIONIC__)
ASSERT_SUBSTR("dlsym library handle is null", dlerror());
#else
ASSERT_SUBSTR("undefined symbol: test", dlerror()); // glibc isn't specific about the failure.
#endif
#endif // !defined(__LP64__)
// NULL symbol name.
#if defined(__BIONIC__)