summaryrefslogtreecommitdiff
path: root/tests/test_malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_malloc.c')
-rw-r--r--tests/test_malloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_malloc.c b/tests/test_malloc.c
index dca06da..e9d924a 100644
--- a/tests/test_malloc.c
+++ b/tests/test_malloc.c
@@ -95,6 +95,7 @@ ln *cons(int d, ln *tail)
return result;
}
+#ifdef DEBUG_RUN_ONE_TEST
void print_list(ln *l)
{
ln *p;
@@ -105,6 +106,7 @@ void print_list(ln *l)
}
printf("\n");
}
+#endif /* DEBUG_RUN_ONE_TEST */
/* Check that l contains numbers from m to n inclusive in ascending order */
void check_list(ln *l, int m, int n)