diff options
Diffstat (limited to 'tests/dlfcn_test.cpp')
-rw-r--r-- | tests/dlfcn_test.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/dlfcn_test.cpp b/tests/dlfcn_test.cpp index 46f5097a7..84f525dee 100644 --- a/tests/dlfcn_test.cpp +++ b/tests/dlfcn_test.cpp @@ -1080,6 +1080,13 @@ TEST(dlfcn, dlopen_library_with_only_sysv_hash) { ASSERT_SUBSTR("libsysv-hash-table-library.so", dlinfo.dli_fname); } +TEST(dlfcn, dlopen_library_with_ELF_TLS) { + dlerror(); // Clear any pending errors. + void* handle = dlopen("libelf-tls-library.so", RTLD_NOW); + ASSERT_TRUE(handle == nullptr); + ASSERT_SUBSTR("unsupported ELF TLS", dlerror()); +} + TEST(dlfcn, dlopen_bad_flags) { dlerror(); // Clear any pending errors. void* handle; |