Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modify elf/tst-audit9.c to use test-skeleton.c
This test was skipped by the use-test-skeleton conversion script
[29955b5] 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.
  • Loading branch information
Arjun Shankar authored and Siddhesh Poyarekar committed Jul 15, 2015
1 parent 112f28e commit e505234
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2015-07-15 Arjun Shankar <arjun.is@lostca.se>

* elf/tst-audit9.c (main): Converted to ...
(do_test): ... this.
(TEST_FUNCTION): New macro.
Include test-skeleton.c.

2015-07-15 Mike Frysinger <vapier@gentoo.org>

* timezone/tst-tzset.c (TIMEOUT): Define to 5.
Expand Down
6 changes: 5 additions & 1 deletion 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"

0 comments on commit e505234

Please sign in to comment.