looking for tst-tlsmod13a.so.
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.
#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 ());