about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-03-27 12:55:25 -0700
committerRoland McGrath <roland@hack.frob.com>2015-03-27 12:55:25 -0700
commit7285eb535aa8bdb43298069b353a3a4b4340a2b4 (patch)
treeb9c7a58cafd78d58922be86d6695ec1532792907
parent19a6a3acd10e04fc3aba8941b44918acc7003aa2 (diff)
downloadglibc-7285eb535aa8bdb43298069b353a3a4b4340a2b4.tar.gz
glibc-7285eb535aa8bdb43298069b353a3a4b4340a2b4.tar.xz
glibc-7285eb535aa8bdb43298069b353a3a4b4340a2b4.zip
Convert dlfcn/tststatic to use test-skeleton.
-rw-r--r--ChangeLog7
-rw-r--r--dlfcn/tststatic.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 38ac2ac26c..09ceae6884 100644
--- 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):
diff --git a/dlfcn/tststatic.c b/dlfcn/tststatic.c
index 00695be7b1..3d6551389e 100644
--- a/dlfcn/tststatic.c
+++ b/dlfcn/tststatic.c
@@ -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"