2.3.4-2.fc3.5
[glibc/history.git] / elf / tst-tls13.c
blob55fb62e540cac10551fb157705c181f1721d4ebd
1 /* Check unloading modules with data in static TLS block. */
2 #include <dlfcn.h>
3 #include <stdio.h>
4 #include <stdlib.h>
7 static int
8 do_test (void)
10 int i;
11 for (i = 0; i < 1000;)
13 printf ("round %d\n",++i);
15 void *h = dlopen ("tst-tlsmod13a.so", RTLD_LAZY);
16 if (h == NULL)
18 printf ("cannot load: %s\n", dlerror ());
19 exit (1);
22 dlclose (h);
25 return 0;
28 #define TEST_FUNCTION do_test ()
29 #define TIMEOUT 3
30 #include "../test-skeleton.c"