Lines Matching refs:handle

107   void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL);  in TEST()  local
108 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
117 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST()
125 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST()
133 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT")); in TEST()
140 dlclose(handle); in TEST()
147 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
148 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
157 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST()
165 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST()
173 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT")); in TEST()
180 dlclose(handle); in TEST()
187 void* handle = dlopen("libtest_empty.so", RTLD_NOW); in TEST() local
189 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
193 sym = dlsym(handle, "DlSymTestFunction"); in TEST()
196 dlclose(handle); in TEST()
201 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW); in TEST() local
202 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
203 void* sym = dlsym(handle, ""); in TEST()
206 dlclose(handle); in TEST()
210 void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW); in TEST() local
211 ASSERT_TRUE(handle != nullptr); in TEST()
214 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
219 dlclose(handle); in TEST()
223 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
224 ASSERT_TRUE(handle == nullptr); in TEST()
225 handle = dlopen("libtest_simple.so", RTLD_NOW); in TEST()
227 ASSERT_TRUE(handle != nullptr); in TEST()
229 ASSERT_TRUE(handle == handle2); in TEST()
230 ASSERT_EQ(0, dlclose(handle)); in TEST()
238 void* handle = dlopen(soname, RTLD_NOW); in TEST() local
239 ASSERT_TRUE(handle == nullptr); in TEST()
242 handle = dlopen(filename, RTLD_NOW); in TEST()
243 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
248 ASSERT_EQ(handle, handle_soname); in TEST()
253 ASSERT_EQ(handle, handle_filename); in TEST()
257 dlclose(handle); in TEST()
271 void* handle = dlopen(vdso_name, RTLD_NOW); in TEST() local
272 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
273 dlclose(handle); in TEST()
284 void* handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); in TEST() local
285 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
286 const char** foo_ptr = reinterpret_cast<const char**>(dlsym(handle, "foo")); in TEST()
287 fn_ptr foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
292 dlclose(handle); in TEST()
298 handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); in TEST()
299 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
300 foo_ptr = reinterpret_cast<const char**>(dlsym(handle, "foo")); in TEST()
301 foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
306 dlclose(handle); in TEST()
316 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST() local
317 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
318 fn_ptr foo_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo")); in TEST()
319 fn_ptr foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
324 dlclose(handle); in TEST()
328 handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST()
329 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
330 foo_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo")); in TEST()
331 foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
336 dlclose(handle); in TEST()
342 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST() local
343 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
344 fn_ptr is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_irelative")); in TEST()
348 is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_jump_slot")); in TEST()
351 dlclose(handle); in TEST()
357 void* handle = dlopen("libtest_ifunc.so", RTLD_LAZY); in TEST() local
358 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
359 fn_ptr is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_irelative")); in TEST()
363 is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_jump_slot")); in TEST()
366 dlclose(handle); in TEST()
381 void* handle = nullptr; in TEST() local
382 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
384 handle = dlopen("libtest_relo_check_dt_needed_order.so", RTLD_NOW); in TEST()
385 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
388 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); in TEST()
419 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); in TEST() local
420 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
430 dlclose(handle); in TEST()
464 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
465 ASSERT_TRUE(handle == nullptr); in TEST()
471 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
472 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
475 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); in TEST()
479 ASSERT_EQ(0, dlclose(handle)); in TEST()
488 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
489 ASSERT_TRUE(handle == nullptr); in TEST()
490 handle = dlopen("libtest_check_order_reloc_siblings_1.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
491 ASSERT_TRUE(handle == nullptr); in TEST()
496 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
497 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
502 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); in TEST()
506 ASSERT_EQ(0, dlclose(handle)); in TEST()
529 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
530 ASSERT_TRUE(handle == nullptr); in TEST()
536 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
537 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
540 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_grandchild_get_answer")); in TEST()
544 ASSERT_EQ(0, dlclose(handle)); in TEST()
575 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
576 ASSERT_TRUE(handle == nullptr); in TEST()
582 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
583 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
586 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_nephew_get_answer")); in TEST()
590 ASSERT_EQ(0, dlclose(handle)); in TEST()
606 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
607 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
617 ASSERT_EQ(0, dlclose(handle)); in TEST()
619 handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL | RTLD_NOLOAD); in TEST()
620 ASSERT_TRUE(handle != nullptr); in TEST()
621 ASSERT_EQ(0, dlclose(handle)); in TEST()
629 handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL | RTLD_NOLOAD); in TEST()
630 ASSERT_TRUE(handle == nullptr); in TEST()
650 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
651 ASSERT_TRUE(handle == nullptr); in TEST()
657 handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_LOCAL); in TEST()
658 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
661 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_root_get_answer")); in TEST()
665 ASSERT_EQ(0, dlclose(handle)); in TEST()
673 void* handle = dlopen("libtest_simple.so", RTLD_NOW); in TEST() local
677 sym = dlsym(handle, "dlopen_testlib_simple_func"); in TEST()
680 dlclose(handle); in TEST()
683 handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_LOCAL); in TEST()
687 sym = dlsym(handle, "dlopen_testlib_simple_func"); in TEST()
690 dlclose(handle); in TEST()
697 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); in TEST() local
698 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
702 dlclose(handle); in TEST()
722 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); in TEST() local
723 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
724 void* f = dlsym(handle, "dlopen_test_loopy_function"); in TEST()
727 ASSERT_EQ(0, dlclose(handle)); in TEST()
730 handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
731 ASSERT_TRUE(handle == nullptr); in TEST()
739 handle = dlopen("libtest_with_dependency_a.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
740 ASSERT_TRUE(handle == nullptr); in TEST()
746 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); in TEST() local
747 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
749 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_1_set_unloa… in TEST()
753 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_1_taxicab_nu… in TEST()
758 dlclose(handle); in TEST()
761 …uint32_t* taxicab_number_after_dlclose = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelet… in TEST()
766 handle = dlopen("libtest_nodelete_1.so", RTLD_NOW); in TEST()
767 …uint32_t* taxicab_number2 = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_1_taxicab_n… in TEST()
772 dlclose(handle); in TEST()
779 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); in TEST() local
780 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
782 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_2_set_unloa… in TEST()
786 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_2_taxicab_nu… in TEST()
795 ASSERT_EQ(handle, handle1); in TEST()
798 dlclose(handle); in TEST()
806 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); in TEST() local
807 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
809 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_dt_flags_1_… in TEST()
813 dlclose(handle); in TEST()
818 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); in TEST() local
819 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
821 get_answer = reinterpret_cast<int (*)()>(dlsym(handle, "dl_df_1_global_get_answer")); in TEST()
824 ASSERT_EQ(0, dlclose(handle)); in TEST()
838 void* handle = dlopen("libtest_simple.so", RTLD_NOW); in TEST() local
839 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
840 uint32_t* taxicab_number = static_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_number")); in TEST()
843 dlclose(handle); in TEST()
855 void* handle = dlopen("/child/thread", RTLD_NOW); in ConcurrentDlErrorFn() local
856 ASSERT_TRUE(handle == nullptr); in ConcurrentDlErrorFn()
865 void* handle = dlopen("/main/thread", RTLD_NOW); in TEST() local
866 ASSERT_TRUE(handle == nullptr); in TEST()
881 void* handle = dlopen("/main/thread", RTLD_NOW); in TEST() local
882 ASSERT_TRUE(handle == nullptr); in TEST()
1043 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); in TEST() local
1044 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1045 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
1046 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
1061 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); in TEST() local
1062 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1063 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
1064 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
1080 void* handle; in TEST() local
1084 handle = dlopen(nullptr, 0); in TEST()
1085 ASSERT_TRUE(handle == nullptr); in TEST()
1089 handle = dlopen(nullptr, 0xffffffff); in TEST()
1090 ASSERT_TRUE(handle == nullptr); in TEST()
1094 handle = dlopen(nullptr, RTLD_NOW|RTLD_LAZY); in TEST()
1095 ASSERT_TRUE(handle != nullptr); in TEST()
1137 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); in TEST() local
1138 ASSERT_TRUE(handle != nullptr); in TEST()
1141 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "weak_func")); in TEST()
1144 dlclose(handle); in TEST()
1148 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); in TEST() local
1149 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1151 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "use_weak_undefined_func")); in TEST()
1154 dlclose(handle); in TEST()
1178 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); in TEST() local
1179 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1180 dlclose(handle); in TEST()
1191 void* handle = dlopen(libname, RTLD_NOW); in test_init_fini_call_order_for() local
1192 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_init_fini_call_order_for()
1195 reinterpret_cast<get_init_order_number_t>(dlsym(handle, "get_init_order_number")); in test_init_fini_call_order_for()
1200 reinterpret_cast<set_fini_callback_t>(dlsym(handle, "set_fini_callback")); in test_init_fini_call_order_for()
1202 dlclose(handle); in test_init_fini_call_order_for()
1212 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); in TEST() local
1213 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1215 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1218 dlclose(handle); in TEST()
1222 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); in TEST() local
1223 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1225 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1228 dlclose(handle); in TEST()
1232 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); in TEST() local
1233 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1235 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1238 dlclose(handle); in TEST()
1242 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); in TEST() local
1243 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1245 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1248 dlclose(handle); in TEST()
1252 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); in TEST() local
1253 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1255 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "versioned_function")); in TEST()
1258 dlclose(handle); in TEST()
1262 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); in TEST() local
1263 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1267 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "nonversion")); in TEST()
1273 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "TESTLIB_V2")); in TEST()
1278 dlclose(handle); in TEST()
1292 void* handle = dlopen("libtest_dt_runpath_d.so", RTLD_NOW); in TEST() local
1293 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1296 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
1302 dlclose(handle); in TEST()
1307 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1308 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1311 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
1317 dlclose(handle); in TEST()
1323 auto f = [](void* handle, bool* is_dtor_triggered) { in test_dlclose_after_thread_local_dtor() argument
1325 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in test_dlclose_after_thread_local_dtor()
1333 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_after_thread_local_dtor() local
1334 ASSERT_TRUE(handle == nullptr); in test_dlclose_after_thread_local_dtor()
1336 handle = dlopen(library_name, RTLD_NOW); in test_dlclose_after_thread_local_dtor()
1337 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_after_thread_local_dtor()
1339 std::thread t(f, handle, &is_dtor_triggered); in test_dlclose_after_thread_local_dtor()
1343 dlclose(handle); in test_dlclose_after_thread_local_dtor()
1345 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_after_thread_local_dtor()
1346 ASSERT_TRUE(handle == nullptr); in test_dlclose_after_thread_local_dtor()
1361 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor() local
1362 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1364 handle = dlopen(library_name, RTLD_NOW); in test_dlclose_before_thread_local_dtor()
1365 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1368 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in test_dlclose_before_thread_local_dtor()
1373 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1379 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1380 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1381 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1384 void* handle = dlopen(library_name, RTLD_NOW); in test_dlclose_before_thread_local_dtor() local
1385 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1386 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1388 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1389 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1396 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1397 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1401 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1402 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1428 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST() local
1429 ASSERT_TRUE(handle == nullptr); in TEST()
1431 handle = dlopen(library_name, RTLD_NOW); in TEST()
1432 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1435 library_handle = handle; in TEST()
1440 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in TEST()
1449 dlclose(handle); in TEST()
1455 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1456 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1457 dlclose(handle); in TEST()
1463 void* handle = library_handle; in TEST() local
1467 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable2")); in TEST()
1484 void* handle = dlopen(library_name, RTLD_NOW); in TEST() local
1485 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1486 dlclose(handle); in TEST()
1488 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1489 ASSERT_TRUE(handle == nullptr); in TEST()
1497 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1498 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1499 dlclose(handle); in TEST()
1511 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1512 ASSERT_TRUE(handle == nullptr); in TEST()
1515 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1516 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1627 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1628 ASSERT_TRUE(handle == nullptr); in TEST()
1636 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1637 ASSERT_TRUE(handle == nullptr); in TEST()
1645 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1646 ASSERT_TRUE(handle == nullptr); in TEST()
1654 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1655 ASSERT_TRUE(handle == nullptr); in TEST()
1663 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1664 ASSERT_TRUE(handle == nullptr); in TEST()
1672 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1673 ASSERT_TRUE(handle == nullptr); in TEST()
1681 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1682 ASSERT_TRUE(handle == nullptr); in TEST()
1690 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1691 ASSERT_TRUE(handle == nullptr); in TEST()
1699 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1700 ASSERT_TRUE(handle == nullptr); in TEST()
1706 void* handle = dlopen("libtest_dlopen_df_1_global.so", RTLD_NOW); in TEST() local
1707 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1711 void* handle = dlopen("libsegment_gap_outer.so", RTLD_NOW); in TEST() local
1712 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1714 auto get_inner = reinterpret_cast<void* (*)()>(dlsym(handle, "get_inner")); in TEST()