sparc: disable cancellable system, as it fails in strange ways right now
[uclibc-ng.git] / test / tls / tst-tls17.c
blobc1bc7d8f4473374b4c1964142288288d5f509180
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 static int
6 do_test (void)
8 void *h = dlopen ("tst-tlsmod17b.so", RTLD_LAZY);
9 if (h == NULL)
11 puts ("unexpectedly failed to open tst-tlsmod17b.so");
12 exit (1);
15 int (*fp) (void) = (int (*) (void)) dlsym (h, "tlsmod17b");
16 if (fp == NULL)
18 puts ("cannot find tlsmod17b");
19 exit (1);
22 if (fp ())
23 exit (1);
25 return 0;
28 #define TEST_FUNCTION do_test ()
29 #include "../test-skeleton.c"