math: Improve fmodf
[glibc.git] / elf / tst-tls9.c
blobee21b47c70b4f6eb5899eaa09b94815cd5adacb4
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include <link.h>
7 static int
8 do_test (void)
10 static const char modname1[] = "tst-tlsmod5.so";
11 static const char modname2[] = "tst-tlsmod6.so";
12 int result = 0;
14 void *h1 = dlopen (modname1, RTLD_LAZY);
15 if (h1 == NULL)
17 printf ("cannot open '%s': %s\n", modname1, dlerror ());
18 result = 1;
20 void *h2 = dlopen (modname2, RTLD_LAZY);
21 if (h2 == NULL)
23 printf ("cannot open '%s': %s\n", modname2, dlerror ());
24 result = 1;
27 if (h1 != NULL)
28 dlclose (h1);
29 if (h2 != NULL)
30 dlclose (h2);
32 return result;
36 #include <support/test-driver.c>