about summary refs log tree commit diff
path: root/malloc/tst-malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/tst-malloc.c')
-rw-r--r--malloc/tst-malloc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/malloc/tst-malloc.c b/malloc/tst-malloc.c
index a75ab1e3aa..2685315077 100644
--- a/malloc/tst-malloc.c
+++ b/malloc/tst-malloc.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;
   int save;
@@ -75,3 +75,6 @@ main (void)
 
   return errors != 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"