summaryrefslogtreecommitdiff
path: root/test/nptl/tst-tls3.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-11-29 20:18:05 -0800
committerAustin Foxley <austinf@cetoncorp.com>2009-11-29 20:18:05 -0800
commitc77069f8cf411096ea633b567db77f90ca3ed761 (patch)
tree6cb4f415ce2f1596252945d96fae7f1087f3df7f /test/nptl/tst-tls3.c
parent4d91ad3daa7260427e96ce1d6c62962795c9dbd5 (diff)
test/nptl: rework tst-tls3 to link with -z,now
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'test/nptl/tst-tls3.c')
-rw-r--r--test/nptl/tst-tls3.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/nptl/tst-tls3.c b/test/nptl/tst-tls3.c
index 411acbdf0..abc5f4cb6 100644
--- a/test/nptl/tst-tls3.c
+++ b/test/nptl/tst-tls3.c
@@ -113,6 +113,15 @@ do_test (void)
exit (1);
}
+ void (*setup_tf) (pthread_barrier_t*, int*, sem_t*) = dlsym(h, "setup_tf");
+ if (setup_tf == NULL)
+ {
+ puts ("dlsym for setup_tf failed");
+ exit(1);
+ }
+
+ setup_tf (&b, &nsigs, &s);
+
struct sigaction sa;
sa.sa_handler = dlsym (h, "handler");
if (sa.sa_handler == NULL)