]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Convert dlfcn/tststatic to use test-skeleton.
authorRoland McGrath <roland@hack.frob.com>
Fri, 27 Mar 2015 19:55:25 +0000 (12:55 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 27 Mar 2015 19:55:25 +0000 (12:55 -0700)
ChangeLog
dlfcn/tststatic.c

index 38ac2ac26c778e5dae4b5bacbcd68207cc2cbd92..09ceae6884d4203d379c85599594a42c9b67fa2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-03-27  Roland McGrath  <roland@hack.frob.com>
+
+       * dlfcn/tststatic.c (main): Converted to ...
+       (do_test): ... this.
+       (TEST_FUNCTION): New macro.
+       Include test-skeleton.c.
+
 2015-03-26  Alan Modra  <amodra@gmail.com>
 
        * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
index 00695be7b1cc21468093f120188aea8f1b0cf4bd..3d6551389eb306c32dacb4d66f05ca6cd5eac072 100644 (file)
@@ -2,8 +2,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 
-int
-main (void)
+static int
+do_test (void)
 {
   void *handle;
   int (*test) (int);
@@ -33,3 +33,6 @@ main (void)
   dlclose (handle);
   return 0;
 }
+
+#define TEST_FUNCTION   do_test ()
+#include "../test-skeleton.c"