This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Convert dlfcn/tststatic2 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 Feb 2015 15:55:22 -0800 (PST)
- Subject: [COMMITTED PATCH] Convert dlfcn/tststatic2 to use test-skeleton.
- Authentication-results: sourceware.org; auth=none
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.
--- 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"