4 extern int successful_rtld_next_test (void);
5 extern void *failing_rtld_next_use (void);
14 /* First try call a function which uses RTLD_NEXT and calls that
16 result
= successful_rtld_next_test ();
19 puts ("RTLD_NEXT seems to work for existing functions");
24 printf ("Heh? `successful_rtld_next_test' returned %d\n", result
);
28 /* Next try a function which tries to get a function with RTLD_NEXT
29 but that fails. This dlsym() call should return a NULL pointer
30 and do nothing else. */
31 addr
= failing_rtld_next_use ();
33 puts ("dlsym returned NULL for non-existing function. Good");
36 puts ("dlsym found something !?");
43 #define TEST_FUNCTION do_test ()
44 #include "../test-skeleton.c"