8 #define TEST_FUNCTION do_test ()
12 static const char modname
[] = "tst-tlsmod2.so";
15 int (*fp
) (int, int *);
18 h
= dlopen (modname
, RTLD_LAZY
);
21 printf ("cannot open '%s': %s\n", modname
, dlerror ());
25 fp
= dlsym (h
, "in_dso");
28 printf ("cannot get symbol 'in_dso': %s\n", dlerror ());
32 result
|= fp (0, NULL
);
34 foop
= dlsym (h
, "foo");
37 printf ("cannot get symbol 'foo' the second time: %s\n", dlerror ());
52 #include "../test-skeleton.c"