diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-12-27 22:29:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-12-27 22:29:27 +0000 |
commit | 285a709aceecbf236acccf89153a9bef1f4fa5d0 (patch) | |
tree | 4bd624d04be36caf4c7ed7326af99b2c376afed5 /elf | |
parent | 11f685f5d8f9db81ed37607dadd1d10f280e4964 (diff) | |
download | glibc-285a709aceecbf236acccf89153a9bef1f4fa5d0.tar glibc-285a709aceecbf236acccf89153a9bef1f4fa5d0.tar.gz glibc-285a709aceecbf236acccf89153a9bef1f4fa5d0.tar.bz2 glibc-285a709aceecbf236acccf89153a9bef1f4fa5d0.zip |
* elf/tst-tls13.c (do_test): Avoid using the library path when
looking for tst-tlsmod13a.so.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tst-tls13.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/tst-tls13.c b/elf/tst-tls13.c index 55fb62e540..06bfbacb5c 100644 --- a/elf/tst-tls13.c +++ b/elf/tst-tls13.c @@ -2,17 +2,17 @@ #include <dlfcn.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> 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 ()); |