Back to index

glibc  2.9
bug-atexit3.c
Go to the documentation of this file.
00001 #include <dlfcn.h>
00002 #include <stdio.h>
00003 
00004 static int
00005 do_test (void)
00006 {
00007   void *handle = dlopen ("$ORIGIN/bug-atexit3-lib.so", RTLD_LAZY);
00008   if (handle == NULL)
00009     {
00010       printf ("dlopen failed: %s\n", dlerror ());
00011       return 1;
00012     }
00013   dlclose (handle);
00014   return 0;
00015 }
00016 
00017 #define TEST_FUNCTION do_test ()
00018 #include "../test-skeleton.c"