From 285a709aceecbf236acccf89153a9bef1f4fa5d0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 27 Dec 2005 22:29:27 +0000 Subject: * elf/tst-tls13.c (do_test): Avoid using the library path when looking for tst-tlsmod13a.so. --- elf/tst-tls13.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'elf') diff --git a/elf/tst-tls13.c b/elf/tst-tls13.c index 55fb62e..06bfbac 100644 --- a/elf/tst-tls13.c +++ b/elf/tst-tls13.c @@ -2,17 +2,17 @@ #include #include #include +#include static int do_test (void) { - int i; - for (i = 0; i < 1000;) + for (int i = 0; i < 1000;) { printf ("round %d\n",++i); - void *h = dlopen ("tst-tlsmod13a.so", RTLD_LAZY); + void *h = dlopen ("$ORIGIN/tst-tlsmod13a.so", RTLD_LAZY); if (h == NULL) { printf ("cannot load: %s\n", dlerror ()); -- cgit v1.1