am 4d299a2c: Merge "Build all bionic test files -Werror and fix our one warning."
* commit '4d299a2cf7880789e658f427196d1ca9fe02a9bc': Build all bionic test files -Werror and fix our one warning.
This commit is contained in:
commit
7ec1ba3ed7
@ -244,8 +244,8 @@ bionic-unit-tests_src_files := \
|
|||||||
dlext_test.cpp \
|
dlext_test.cpp \
|
||||||
dlfcn_test.cpp \
|
dlfcn_test.cpp \
|
||||||
|
|
||||||
bionic-unit-tests_cppflags := \
|
bionic-unit-tests_cflags := $(test_cflags)
|
||||||
$(test_cppflags)
|
bionic-unit-tests_cppflags := $(test_cppflags)
|
||||||
|
|
||||||
bionic-unit-tests_ldflags := \
|
bionic-unit-tests_ldflags := \
|
||||||
-Wl,--export-dynamic \
|
-Wl,--export-dynamic \
|
||||||
@ -301,8 +301,8 @@ bionic-unit-tests-glibc_whole_static_libraries := \
|
|||||||
bionic-unit-tests-glibc_ldlibs := \
|
bionic-unit-tests-glibc_ldlibs := \
|
||||||
-lrt -ldl \
|
-lrt -ldl \
|
||||||
|
|
||||||
bionic-unit-tests-glibc_cppflags := \
|
bionic-unit-tests-glibc_cflags := $(test_cflags)
|
||||||
$(test_cppflags)
|
bionic-unit-tests-glibc_cppflags := $(test_cppflags)
|
||||||
|
|
||||||
module := bionic-unit-tests-glibc
|
module := bionic-unit-tests-glibc
|
||||||
module_tag := optional
|
module_tag := optional
|
||||||
|
@ -61,7 +61,7 @@ TEST(dlfcn, dlsym_local_symbol) {
|
|||||||
uint32_t (*f)(void);
|
uint32_t (*f)(void);
|
||||||
f = reinterpret_cast<uint32_t (*)(void)>(dlsym(handle, "dlsym_local_symbol_get_taxicab_number_using_dlsym"));
|
f = reinterpret_cast<uint32_t (*)(void)>(dlsym(handle, "dlsym_local_symbol_get_taxicab_number_using_dlsym"));
|
||||||
ASSERT_TRUE(f != NULL);
|
ASSERT_TRUE(f != NULL);
|
||||||
ASSERT_EQ(1729, f());
|
ASSERT_EQ(1729U, f());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(dlfcn, dlopen_noload) {
|
TEST(dlfcn, dlopen_noload) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user