about summary refs log tree commit diff
path: root/malloc/tst-mcheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/tst-mcheck.c')
-rw-r--r--malloc/tst-mcheck.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/malloc/tst-mcheck.c b/malloc/tst-mcheck.c
index 478ca8cd24..bd9ab0efa7 100644
--- a/malloc/tst-mcheck.c
+++ b/malloc/tst-mcheck.c
@@ -29,8 +29,8 @@ merror (const char *msg)
   printf ("Error: %s\n", msg);
 }
 
-int
-main (void)
+static int
+do_test (void)
 {
   void *p, *q;
 
@@ -88,3 +88,6 @@ main (void)
 
   return errors != 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"