Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Convert dlfcn/tststatic to use test-skeleton.
  • Loading branch information
Roland McGrath committed Mar 27, 2015
1 parent 19a6a3a commit 7285eb5
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-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.

2015-03-26 Alan Modra <amodra@gmail.com>

* sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
Expand Down
7 changes: 5 additions & 2 deletions dlfcn/tststatic.c
Expand Up @@ -2,8 +2,8 @@
#include <stdio.h>
#include <stdlib.h>

int
main (void)
static int
do_test (void)
{
void *handle;
int (*test) (int);
Expand Down Expand Up @@ -33,3 +33,6 @@ main (void)
dlclose (handle);
return 0;
}

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

0 comments on commit 7285eb5

Please sign in to comment.