Mention IFUNC enhancements to testsuite in NEWS.
[platform/upstream/glibc.git] / elf / tst-tls9.c
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
4
5 #include <link.h>
6 #include <tls.h>
7
8 #define TEST_FUNCTION do_test ()
9 static int
10 do_test (void)
11 {
12   static const char modname1[] = "tst-tlsmod5.so";
13   static const char modname2[] = "tst-tlsmod6.so";
14   int result = 0;
15
16   void *h1 = dlopen (modname1, RTLD_LAZY);
17   if (h1 == NULL)
18     {
19       printf ("cannot open '%s': %s\n", modname1, dlerror ());
20       result = 1;
21     }
22   void *h2 = dlopen (modname2, RTLD_LAZY);
23   if (h2 == NULL)
24     {
25       printf ("cannot open '%s': %s\n", modname2, dlerror ());
26       result = 1;
27     }
28
29   if (h1 != NULL)
30     dlclose (h1);
31   if (h2 != NULL)
32     dlclose (h2);
33
34   return result;
35 }
36
37
38 #include "../test-skeleton.c"