powerpc: Fix missing verb and typo in comment about AT_HWCAP entry
[glibc.git] / elf / tst-tls9.c
blob6306fb5658657c07d01dfec544d399164792e34e
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include <link.h>
7 #define TEST_FUNCTION do_test ()
8 static int
9 do_test (void)
11 static const char modname1[] = "tst-tlsmod5.so";
12 static const char modname2[] = "tst-tlsmod6.so";
13 int result = 0;
15 void *h1 = dlopen (modname1, RTLD_LAZY);
16 if (h1 == NULL)
18 printf ("cannot open '%s': %s\n", modname1, dlerror ());
19 result = 1;
21 void *h2 = dlopen (modname2, RTLD_LAZY);
22 if (h2 == NULL)
24 printf ("cannot open '%s': %s\n", modname2, dlerror ());
25 result = 1;
28 if (h1 != NULL)
29 dlclose (h1);
30 if (h2 != NULL)
31 dlclose (h2);
33 return result;
37 #include "../test-skeleton.c"