Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert dlfcn/tststatic2 to use test-skeleton.
  • Loading branch information
Roland McGrath committed Feb 27, 2015
1 parent ef4ad06 commit c7b19ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions 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]
Expand Down
7 changes: 5 additions & 2 deletions dlfcn/tststatic2.c
Expand Up @@ -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)
Expand Down Expand Up @@ -162,3 +162,6 @@ main (void)

return 0;
}

#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"

0 comments on commit c7b19ca

Please sign in to comment.