summary refs log tree commit diff
path: root/malloc/tst-mtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/tst-mtrace.c')
-rw-r--r--malloc/tst-mtrace.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/malloc/tst-mtrace.c b/malloc/tst-mtrace.c
index 9b5151c7e0..b2c0c2c951 100644
--- a/malloc/tst-mtrace.c
+++ b/malloc/tst-mtrace.c
@@ -30,8 +30,8 @@ static void print (const void *node, VISIT value, int level);
 static FILE *fp;
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   void *root = NULL;
   size_t linelen = 0;
@@ -100,3 +100,6 @@ print (const void *node, VISIT value, int level)
   if (value == postorder || value == leaf)
     fprintf (fp, "%3d: %s", ++cnt, *(const char **) node);
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"