This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Convert dlfcn/tststatic to use test-skeleton.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 27 Mar 2015 12:56:41 -0700 (PDT)
- Subject: [COMMITTED PATCH] Convert dlfcn/tststatic to use test-skeleton.
- Authentication-results: sourceware.org; auth=none
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.
--- 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"