source: vendor/glibc-tests/glibc/elf/tst-tls13.c

Last change on this file was 2036, checked in by bird, 20 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 488 bytes
Line 
1/* Check unloading modules with data in static TLS block. */
2#include <dlfcn.h>
3#include <stdio.h>
4#include <stdlib.h>
5
6
7static int
8do_test (void)
9{
10 int i;
11 for (i = 0; i < 1000;)
12 {
13 printf ("round %d\n",++i);
14
15 void *h = dlopen ("tst-tlsmod13a.so", RTLD_LAZY);
16 if (h == NULL)
17 {
18 printf ("cannot load: %s\n", dlerror ());
19 exit (1);
20 }
21
22 dlclose (h);
23 }
24
25 return 0;
26}
27
28#define TEST_FUNCTION do_test ()
29#define TIMEOUT 3
30#include "../test-skeleton.c"
Note: See TracBrowser for help on using the repository browser.