am 3cf6d998
: am 6a7e539c
: am 22ba86ee
: Merge "Add extra regression tests for an already-fixed dynamic linker bug."
* commit '3cf6d9983c534dd6dae0b3e805a6cdadad910aa8': Add extra regression tests for an already-fixed dynamic linker bug.
This commit is contained in:
commit
c79a5b5cda
@ -224,13 +224,21 @@ TEST(dlfcn, dlopen_bad_flags) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(dlfcn, rtld_default_unknown_symbol) {
|
TEST(dlfcn, rtld_default_unknown_symbol) {
|
||||||
void* self = RTLD_DEFAULT;
|
void* addr = dlsym(RTLD_DEFAULT, "ANY_UNKNOWN_SYMBOL_NAME");
|
||||||
void* addr = dlsym(self, "ANY_UNKNOWN_SYMBOL_NAME");
|
|
||||||
ASSERT_TRUE(addr == NULL);
|
ASSERT_TRUE(addr == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(dlfcn, rtld_default_known_symbol) {
|
TEST(dlfcn, rtld_default_known_symbol) {
|
||||||
void* self = RTLD_DEFAULT;
|
void* addr = dlsym(RTLD_DEFAULT, "fopen");
|
||||||
void* addr = dlsym(self, "fopen");
|
ASSERT_TRUE(addr != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST(dlfcn, rtld_next_unknown_symbol) {
|
||||||
|
void* addr = dlsym(RTLD_NEXT, "ANY_UNKNOWN_SYMBOL_NAME");
|
||||||
|
ASSERT_TRUE(addr == NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST(dlfcn, rtld_next_known_symbol) {
|
||||||
|
void* addr = dlsym(RTLD_NEXT, "fopen");
|
||||||
ASSERT_TRUE(addr != NULL);
|
ASSERT_TRUE(addr != NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user