From: Roland McGrath Date: Fri, 27 Feb 2015 23:21:03 +0000 (-0800) Subject: Convert dlfcn/tststatic2 to use test-skeleton. X-Git-Tag: glibc-2.22~529 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c7b19ca99a410e9f2b82b9b3494c12c9a5da32db;p=thirdparty%2Fglibc.git Convert dlfcn/tststatic2 to use test-skeleton. --- diff --git a/ChangeLog b/ChangeLog index 1ac660957ec..0b5c27d4898 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2015-02-27 Roland McGrath + + * dlfcn/tststatic2.c (main): Converted to ... + (do_test): ... this. + (TEST_FUNCTION): New macro. + Include test-skeleton.c. + 2015-02-27 H.J. Lu [BZ #17711] diff --git a/dlfcn/tststatic2.c b/dlfcn/tststatic2.c index 5d273a69bfc..f8cd5a964ba 100644 --- a/dlfcn/tststatic2.c +++ b/dlfcn/tststatic2.c @@ -5,8 +5,8 @@ #include #include -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"