glibc/elf/tst-audit9.c

13 lines
228 B
C
Raw Normal View History

#include <dlfcn.h>
static int
do_test (void)
{
void *h = dlopen("$ORIGIN/tst-auditmod9b.so", RTLD_LAZY);
int (*fp)(void) = dlsym(h, "f");
return fp() - 1;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"