about summary refs log tree commit diff
path: root/elf/tst-dlmodcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/tst-dlmodcount.c')
-rw-r--r--elf/tst-dlmodcount.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/elf/tst-dlmodcount.c b/elf/tst-dlmodcount.c
index 64df2fa18a..6cfa366836 100644
--- a/elf/tst-dlmodcount.c
+++ b/elf/tst-dlmodcount.c
@@ -92,8 +92,8 @@ unload (const char *path, void *handle)
   dl_iterate_phdr (callback, (void *)(intptr_t) REMOVE);
 }
 
-int
-main (int argc, char **argv)
+static int
+do_test (void)
 {
   void *handle1, *handle2;
 
@@ -104,3 +104,6 @@ main (int argc, char **argv)
   unload ("globalmod1.so", handle2);
   return 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"