12 void *h1 = dlopen ("$ORIGIN/order2mod1.so", RTLD_LAZY | RTLD_GLOBAL);
15 puts ("cannot load order2mod1");
18 void *h2 = dlopen ("$ORIGIN/order2mod2.so", RTLD_LAZY);
21 puts ("cannot load order2mod2");
24 if (dlclose (h1) != 0)
26 puts ("dlclose order2mod1 failed");
29 if (dlclose (h2) != 0)
31 puts ("dlclose order2mod2 failed");
37 #define TEST_FUNCTION do_test ()
38 #include "../test-skeleton.c"
41 __attribute__ ((destructor))