diff options
Diffstat (limited to 'elf/tst-audit9.c')
-rw-r--r-- | elf/tst-audit9.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/elf/tst-audit9.c b/elf/tst-audit9.c index 0982d8b..7b90a5a 100644 --- a/elf/tst-audit9.c +++ b/elf/tst-audit9.c @@ -1,8 +1,12 @@ #include <dlfcn.h> -int main(void) +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" |