• Home
  • Raw
  • Download

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()
286 void* handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); in TEST() local
287 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
288 const char** foo_ptr = reinterpret_cast<const char**>(dlsym(handle, "foo")); in TEST()
289 fn_ptr foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
294 dlclose(handle); in TEST()
300 handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); in TEST()
301 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
302 foo_ptr = reinterpret_cast<const char**>(dlsym(handle, "foo")); in TEST()
303 foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
308 dlclose(handle); in TEST()
318 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST() local
319 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
320 fn_ptr foo_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo")); in TEST()
321 fn_ptr foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
326 dlclose(handle); in TEST()
330 handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST()
331 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
332 foo_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo")); in TEST()
333 foo_library_ptr = reinterpret_cast<fn_ptr>(dlsym(handle, "foo_library")); in TEST()
338 dlclose(handle); in TEST()
344 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); in TEST() local
345 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
346 fn_ptr is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_irelative")); in TEST()
350 is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_jump_slot")); in TEST()
353 dlclose(handle); in TEST()
359 void* handle = dlopen("libtest_ifunc.so", RTLD_LAZY); in TEST() local
360 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
361 fn_ptr is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_irelative")); in TEST()
365 is_ctor_called = reinterpret_cast<fn_ptr>(dlsym(handle, "is_ctor_called_jump_slot")); in TEST()
368 dlclose(handle); in TEST()
384 void* handle = nullptr; in TEST() local
385 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
387 handle = dlopen("libtest_relo_check_dt_needed_order.so", RTLD_NOW); in TEST()
388 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
391 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "relo_test_get_answer")); in TEST()
422 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); in TEST() local
423 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
433 dlclose(handle); in TEST()
467 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
468 ASSERT_TRUE(handle == nullptr); in TEST()
474 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
475 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
478 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); in TEST()
482 ASSERT_EQ(0, dlclose(handle)); in TEST()
491 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
492 ASSERT_TRUE(handle == nullptr); in TEST()
493 handle = dlopen("libtest_check_order_reloc_siblings_1.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
494 ASSERT_TRUE(handle == nullptr); in TEST()
499 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
500 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
505 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_get_answer")); in TEST()
509 ASSERT_EQ(0, dlclose(handle)); in TEST()
532 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
533 ASSERT_TRUE(handle == nullptr); in TEST()
539 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
540 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
543 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_grandchild_get_answer")); in TEST()
547 ASSERT_EQ(0, dlclose(handle)); in TEST()
578 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
579 ASSERT_TRUE(handle == nullptr); in TEST()
585 handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_LOCAL); in TEST()
586 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
589 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_nephew_get_answer")); in TEST()
593 ASSERT_EQ(0, dlclose(handle)); in TEST()
609 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
610 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
620 ASSERT_EQ(0, dlclose(handle)); in TEST()
622 handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL | RTLD_NOLOAD); in TEST()
623 ASSERT_TRUE(handle != nullptr); in TEST()
624 ASSERT_EQ(0, dlclose(handle)); in TEST()
632 handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL | RTLD_NOLOAD); in TEST()
633 ASSERT_TRUE(handle == nullptr); in TEST()
653 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); in TEST() local
654 ASSERT_TRUE(handle == nullptr); in TEST()
660 handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_LOCAL); in TEST()
661 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
664 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "check_order_reloc_root_get_answer")); in TEST()
668 ASSERT_EQ(0, dlclose(handle)); in TEST()
676 void* handle = dlopen("libtest_simple.so", RTLD_NOW); in TEST() local
680 sym = dlsym(handle, "dlopen_testlib_simple_func"); in TEST()
683 dlclose(handle); in TEST()
686 handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_LOCAL); in TEST()
690 sym = dlsym(handle, "dlopen_testlib_simple_func"); in TEST()
693 dlclose(handle); in TEST()
700 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); in TEST() local
701 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
705 dlclose(handle); in TEST()
725 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); in TEST() local
726 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
727 void* f = dlsym(handle, "dlopen_test_loopy_function"); in TEST()
730 ASSERT_EQ(0, dlclose(handle)); in TEST()
733 handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
734 ASSERT_TRUE(handle == nullptr); in TEST()
742 handle = dlopen("libtest_with_dependency_a.so", RTLD_NOW | RTLD_NOLOAD); in TEST()
743 ASSERT_TRUE(handle == nullptr); in TEST()
749 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); in TEST() local
750 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
752 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_1_set_unloa… in TEST()
756 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_1_taxicab_nu… in TEST()
761 dlclose(handle); in TEST()
764 …uint32_t* taxicab_number_after_dlclose = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelet… in TEST()
769 handle = dlopen("libtest_nodelete_1.so", RTLD_NOW); in TEST()
770 …uint32_t* taxicab_number2 = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_1_taxicab_n… in TEST()
775 dlclose(handle); in TEST()
782 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); in TEST() local
783 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
785 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_2_set_unloa… in TEST()
789 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle, "dlopen_nodelete_2_taxicab_nu… in TEST()
798 ASSERT_EQ(handle, handle1); in TEST()
801 dlclose(handle); in TEST()
809 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); in TEST() local
810 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
812 …set_unload_flag_ptr = reinterpret_cast<void (*)(bool*)>(dlsym(handle, "dlopen_nodelete_dt_flags_1_… in TEST()
816 dlclose(handle); in TEST()
821 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); in TEST() local
822 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
824 get_answer = reinterpret_cast<int (*)()>(dlsym(handle, "dl_df_1_global_get_answer")); in TEST()
827 ASSERT_EQ(0, dlclose(handle)); in TEST()
841 void* handle = dlopen("libtest_simple.so", RTLD_NOW); in TEST() local
842 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
843 uint32_t* taxicab_number = static_cast<uint32_t*>(dlsym(handle, "dlopen_testlib_taxicab_number")); in TEST()
846 dlclose(handle); in TEST()
858 void* handle = dlopen("/child/thread", RTLD_NOW); in ConcurrentDlErrorFn() local
859 ASSERT_TRUE(handle == nullptr); in ConcurrentDlErrorFn()
868 void* handle = dlopen("/main/thread", RTLD_NOW); in TEST() local
869 ASSERT_TRUE(handle == nullptr); in TEST()
884 void* handle = dlopen("/main/thread", RTLD_NOW); in TEST() local
885 ASSERT_TRUE(handle == nullptr); in TEST()
1051 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); in TEST() local
1052 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1053 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
1054 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
1072 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); in TEST() local
1073 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1074 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST()
1075 void* sym = dlsym(handle, "getRandomNumber"); in TEST()
1091 void* handle; in TEST() local
1095 handle = dlopen(nullptr, 0); in TEST()
1096 ASSERT_TRUE(handle == nullptr); in TEST()
1100 handle = dlopen(nullptr, 0xffffffff); in TEST()
1101 ASSERT_TRUE(handle == nullptr); in TEST()
1105 handle = dlopen(nullptr, RTLD_NOW|RTLD_LAZY); in TEST()
1106 ASSERT_TRUE(handle != nullptr); in TEST()
1148 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); in TEST() local
1149 ASSERT_TRUE(handle != nullptr); in TEST()
1152 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "weak_func")); in TEST()
1155 dlclose(handle); in TEST()
1159 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); in TEST() local
1160 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1162 weak_func = reinterpret_cast<int (*)()>(dlsym(handle, "use_weak_undefined_func")); in TEST()
1165 dlclose(handle); in TEST()
1189 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); in TEST() local
1190 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1191 dlclose(handle); in TEST()
1202 void* handle = dlopen(libname, RTLD_NOW); in test_init_fini_call_order_for() local
1203 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_init_fini_call_order_for()
1206 reinterpret_cast<get_init_order_number_t>(dlsym(handle, "get_init_order_number")); in test_init_fini_call_order_for()
1211 reinterpret_cast<set_fini_callback_t>(dlsym(handle, "set_fini_callback")); in test_init_fini_call_order_for()
1213 dlclose(handle); in test_init_fini_call_order_for()
1223 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); in TEST() local
1224 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1226 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1229 dlclose(handle); in TEST()
1233 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); in TEST() local
1234 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1236 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1239 dlclose(handle); in TEST()
1243 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); in TEST() local
1244 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1246 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1249 dlclose(handle); in TEST()
1253 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); in TEST() local
1254 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1256 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "get_function_version")); in TEST()
1259 dlclose(handle); in TEST()
1263 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); in TEST() local
1264 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1266 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "versioned_function")); in TEST()
1269 dlclose(handle); in TEST()
1273 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); in TEST() local
1274 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1278 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "nonversion")); in TEST()
1284 fn_t fn = reinterpret_cast<fn_t>(dlvsym(handle, "versioned_function", "TESTLIB_V2")); in TEST()
1289 dlclose(handle); in TEST()
1303 void* handle = dlopen("libtest_dt_runpath_d.so", RTLD_NOW); in TEST() local
1304 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1307 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
1313 dlclose(handle); in TEST()
1318 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1319 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1322 dlopen_b_fn fn = (dlopen_b_fn)dlsym(handle, "dlopen_b"); in TEST()
1328 dlclose(handle); in TEST()
1334 auto f = [](void* handle, bool* is_dtor_triggered) { in test_dlclose_after_thread_local_dtor() argument
1336 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in test_dlclose_after_thread_local_dtor()
1344 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_after_thread_local_dtor() local
1345 ASSERT_TRUE(handle == nullptr); in test_dlclose_after_thread_local_dtor()
1347 handle = dlopen(library_name, RTLD_NOW); in test_dlclose_after_thread_local_dtor()
1348 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_after_thread_local_dtor()
1350 std::thread t(f, handle, &is_dtor_triggered); in test_dlclose_after_thread_local_dtor()
1354 dlclose(handle); in test_dlclose_after_thread_local_dtor()
1356 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_after_thread_local_dtor()
1357 ASSERT_TRUE(handle == nullptr); in test_dlclose_after_thread_local_dtor()
1372 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor() local
1373 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1375 handle = dlopen(library_name, RTLD_NOW); in test_dlclose_before_thread_local_dtor()
1376 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1379 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in test_dlclose_before_thread_local_dtor()
1384 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1390 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1391 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1392 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1395 void* handle = dlopen(library_name, RTLD_NOW); in test_dlclose_before_thread_local_dtor() local
1396 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1397 dlclose(handle); in test_dlclose_before_thread_local_dtor()
1399 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1400 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1407 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1408 ASSERT_TRUE(handle == nullptr); in test_dlclose_before_thread_local_dtor()
1412 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in test_dlclose_before_thread_local_dtor()
1413 ASSERT_TRUE(handle != nullptr) << dlerror(); in test_dlclose_before_thread_local_dtor()
1439 void* handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST() local
1440 ASSERT_TRUE(handle == nullptr); in TEST()
1442 handle = dlopen(library_name, RTLD_NOW); in TEST()
1443 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1446 library_handle = handle; in TEST()
1451 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable")); in TEST()
1460 dlclose(handle); in TEST()
1466 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1467 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1468 dlclose(handle); in TEST()
1474 void* handle = library_handle; in TEST() local
1478 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "init_thread_local_variable2")); in TEST()
1495 void* handle = dlopen(library_name, RTLD_NOW); in TEST() local
1496 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1497 dlclose(handle); in TEST()
1499 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1500 ASSERT_TRUE(handle == nullptr); in TEST()
1508 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1509 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1510 dlclose(handle); in TEST()
1522 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1523 ASSERT_TRUE(handle == nullptr); in TEST()
1526 handle = dlopen(library_name, RTLD_NOW | RTLD_NOLOAD); in TEST()
1527 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1640 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1641 ASSERT_TRUE(handle == nullptr); in TEST()
1651 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1652 ASSERT_TRUE(handle == nullptr); in TEST()
1662 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1663 ASSERT_TRUE(handle == nullptr); in TEST()
1673 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1674 ASSERT_TRUE(handle == nullptr); in TEST()
1684 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1685 ASSERT_TRUE(handle == nullptr); in TEST()
1695 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1696 ASSERT_TRUE(handle == nullptr); in TEST()
1706 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1707 ASSERT_TRUE(handle == nullptr); in TEST()
1717 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1718 ASSERT_TRUE(handle == nullptr); in TEST()
1728 void* handle = dlopen(libpath.c_str(), RTLD_NOW); in TEST() local
1729 ASSERT_TRUE(handle == nullptr); in TEST()
1735 void* handle = dlopen("libtest_dlopen_df_1_global.so", RTLD_NOW); in TEST() local
1736 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1740 void* handle = dlopen("libsegment_gap_outer.so", RTLD_NOW); in TEST() local
1741 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
1743 auto get_inner = reinterpret_cast<void* (*)()>(dlsym(handle, "get_inner")); in TEST()