]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Modify elf/tst-audit9.c to use test-skeleton.c
authorArjun Shankar <arjun.is@lostca.se>
Thu, 9 Jul 2015 14:51:30 +0000 (14:51 +0000)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 15 Jul 2015 09:40:23 +0000 (15:10 +0530)
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.

ChangeLog
elf/tst-audit9.c

index 2d3152d65c87764adb454a7961eecc143c42615d..152723a2f72f917367bfdde0e13326ecae1d6226 100644 (file)
--- a/ChangeLog
+++ b/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.
index 0982d8b7161aa4178e9f188f3f9fce4ea57d9ef8..7b90a5ad2d9fd1817bc508d0141a736879bb4d40 100644 (file)
@@ -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"