]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/tst-tls13.c (do_test): Avoid using the library path when
authorUlrich Drepper <drepper@redhat.com>
Tue, 27 Dec 2005 22:29:27 +0000 (22:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 27 Dec 2005 22:29:27 +0000 (22:29 +0000)
looking for tst-tlsmod13a.so.

ChangeLog
elf/tst-tls13.c

index 6afff2d11e3a6c1e61a90487f616fbd8f2716d06..b39c0393c96f550395b8bb21cc1c82310a1df53b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-12-27  Ulrich Drepper  <drepper@redhat.com>
 
+       * elf/tst-tls13.c (do_test): Avoid using the library path when
+       looking for tst-tlsmod13a.so.
+
        * stdio-common/tstdiomisc.c: If FLT_EVEL_METHOD is 2 use long
        double math to generate NaN results.
 
index 55fb62e540cac10551fb157705c181f1721d4ebd..06bfbacb5cf5939b03368c700319bc3f3297f76a 100644 (file)
@@ -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 ());