8 #define TEST_FUNCTION do_test ()
13 static const char modname[] = "tst-tlsmod2.so";
16 int (*fp) (int, int *);
19 h = dlopen (modname, RTLD_LAZY);
22 printf ("cannot open '%s': %s\n", modname, dlerror ());
26 fp = dlsym (h, "in_dso");
29 printf ("cannot get symbol 'in_dso': %s\n", dlerror ());
33 result |= fp (0, NULL);
35 foop = dlsym (h, "foo");
38 printf ("cannot get symbol 'foo' the second time: %s\n", dlerror ());
56 #include "../test-skeleton.c"