(addhstaiX): Fix a few small problems, cleanups, more asserts.
[glibc/history.git] / elf / tst-dlmopen3.c
blob26c86b2dcaeaaaab90702b5534c7e2b4402b00a9
1 #include <dlfcn.h>
2 #include <stdio.h>
5 static int
6 do_test (void)
8 void *h = dlmopen (LM_ID_NEWLM, "$ORIGIN/tst-dlmopen1mod.so", RTLD_LAZY);
9 if (h == NULL)
11 printf ("cannot get handle for %s: %s\n",
12 "tst-dlmopen1mod.so", dlerror ());
13 return 1;
16 /* Do not unload. */
18 return 0;
21 #define TEST_FUNCTION do_test ()
22 #include "../test-skeleton.c"