aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--dlfcn/tststatic2.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ac6609..0b5c27d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2015-02-27 Roland McGrath <roland@hack.frob.com>
+
+ * dlfcn/tststatic2.c (main): Converted to ...
+ (do_test): ... this.
+ (TEST_FUNCTION): New macro.
+ Include test-skeleton.c.
+
2015-02-27 H.J. Lu <hongjiu.lu@intel.com>
[BZ #17711]
diff --git a/dlfcn/tststatic2.c b/dlfcn/tststatic2.c
index 5d273a6..f8cd5a9 100644
--- a/dlfcn/tststatic2.c
+++ b/dlfcn/tststatic2.c
@@ -5,8 +5,8 @@
#include <string.h>
#include <gnu/lib-names.h>
-int
-main (void)
+static int
+do_test (void)
{
void *handle = dlopen ("modstatic2-nonexistent.so", RTLD_LAZY);
if (handle == NULL)
@@ -162,3 +162,6 @@ main (void)
return 0;
}
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"