summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_malloc.c2
-rw-r--r--tests/test_stack.c2
2 files changed, 4 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)
diff --git a/tests/test_stack.c b/tests/test_stack.c
index c21a881..0847c11 100644
--- a/tests/test_stack.c
+++ b/tests/test_stack.c
@@ -96,6 +96,7 @@ void add_elements(int n)
AO_stack_push(&the_list, (AO_t *)le);
}
+#ifdef VERBOSE
void print_list(void)
{
list_element *p;
@@ -105,6 +106,7 @@ void print_list(void)
p = (list_element *)AO_REAL_NEXT_PTR(p -> next))
printf("%d\n", p -> data);
}
+#endif /* VERBOSE */
static char marks[MAX_NTHREADS * (MAX_NTHREADS + 1) / 2 + 1];