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