Lines Matching defs:dllName

7 const char* dllName = "libdlopen_ns_dso.so";
67 void* handle1 = dlopen_ns(&dlns1, dllName, RTLD_NOW);
69 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns1.name, dllName, dlerror());
71 void* handle2 = dlopen_ns(&dlns1, dllName, RTLD_NOW);
73 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns1.name, dllName, dlerror());
76 t_error("dlopen same so(%s) by same ns but handle is different %s \n", dllName);
79 t_error("dlclose %s failed : %s \n", dllName, dlerror());
82 t_error("dlclose %s failed : %s \n", dllName, dlerror());
96 void* handle1 = dlopen_ns(&dlns1, dllName, RTLD_NOW);
98 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns1.name, dllName, dlerror());
100 void* handle2 = dlopen_ns(&dlns2, dllName, RTLD_NOW);
102 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns2.name, dllName, dlerror());
105 t_error("dlopen same so(%s) by same ns but handle is different %s \n", dllName);
108 t_error("dlclose %s failed : %s \n", dllName, dlerror());
111 t_error("dlclose %s failed : %s \n", dllName, dlerror());
124 dlns_inherit(&dlns2, &dlns1, dllName);
126 void* handle1 = dlopen_ns(&dlns1, dllName, RTLD_NOW);
128 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns1.name, dllName, dlerror());
130 void* handle2 = dlopen_ns(&dlns2, dllName, RTLD_NOW);
132 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns2.name, dllName, dlerror());
135 t_error("dlopen same so(%s) by inherit ns but handle is different %s \n", dllName);
138 t_error("dlclose %s failed : %s \n", dllName, dlerror());
141 t_error("dlclose %s failed : %s \n", dllName, dlerror());
154 handle = dlopen_ns(&dlns1, dllName, RTLD_NOW);
156 t_error("dlopen_ns(ns=%s, name=%s) failed : %s \n", dlns1.name, dllName, dlerror());
160 snprintf(absolute_path_1, sizeof(absolute_path_1), "%s/%s", dllPath_ns, dllName);
188 void* handle1 = dlopen_ns(&inherit_A, dllName, RTLD_LAZY);
190 t_error("dlopen_ns_by_ini_no_inherit handle %s should not open successfully \n", dllName);
195 dlns_inherit(&inherit_A, &inherit_B, dllName);
196 void* handle2 = dlopen_ns(&inherit_A, dllName, RTLD_LAZY);
198 t_error("dlopen_ns_by_dlns_inherir handle get error %s open failed : %s \n", dllName, dlerror());
201 t_error("dlclose_by_dlns_inherir handle %s close failed : %s\n", dllName, dlerror());
205 void* handle3 = dlopen_ns(&inherit_A, dllName, RTLD_LAZY);
207 t_error("dlopen_ns_by_ini_no_inherit handle2 %s should not open successfully \n", dllName);
224 dlns_inherit(&transitivity_B, &transitivity_C, dllName);
227 void* handleB = dlopen_ns(&transitivity_B, dllName, RTLD_LAZY);
229 t_error("dlopen_ns_by_inherit_transitivity handleB get error %s open failed : %s \n", dllName, dlerror());
231 void* handleC = dlopen_ns(&transitivity_C, dllName, RTLD_LAZY);
233 t_error("dlopen_ns_by_inherit_transitivity handleC get error %s open failed : %s \n", dllName, dlerror());
236 t_error("dlclose_by_inherit_transitivity handleC %s close failed : %s\n", dllName, dlerror());
238 t_error("dlclose_by_inherit_transitivity handleB %s close failed : %s\n", dllName, dlerror());
241 void* handleA = dlopen_ns(&transitivity_A, dllName, RTLD_LAZY);
243 t_error("dlopen_ns_by_inherit_transitivity handleA %s should not open successfully \n", dllName);
253 void* handle = dlopen_ns(&dlns, dllName, RTLD_LAZY);
255 t_error("dlopen_ns %s use a non-existent ns failed: %s\n", dllName, dlerror());
258 t_error("dlclose %s failed : %s \n", dllName, dlerror());
262 void* handle2 = dlopen_ns(&dlns, dllName, RTLD_LAZY);
264 t_error("%s namespace can't see %s but dlopen succee.\n", "ns_for_create2", dllName);