about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorArjun Shankar <arjun.is@lostca.se>2015-07-09 14:51:30 +0000
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-07-15 15:10:23 +0530
commite505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f (patch)
treeb133478d0fd6621ba43b1db09a16252c44f19b61 /elf
parent112f28e88c4ea5afbd6050e71416a23db11e4adc (diff)
downloadglibc-e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f.tar.gz
glibc-e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f.tar.xz
glibc-e505234f6e59c0d1a2b6f2e7d80acaf8a7a05d1f.zip
Modify elf/tst-audit9.c to use test-skeleton.c
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.
Diffstat (limited to 'elf')
-rw-r--r--elf/tst-audit9.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/elf/tst-audit9.c b/elf/tst-audit9.c
index 0982d8b716..7b90a5ad2d 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"