mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
e505234f6e
This test was skipped by the use-test-skeleton conversion script
[29955b5d
] because the definition of `main' did not begin according to
the GNU formatting style that the script assumed.
ChangeLog:
2015-07-09 Arjun Shankar <arjun.is@lostca.se>
* elf/tst-audit9.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.
13 lines
228 B
C
13 lines
228 B
C
#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"
|