From 21d9bf203448221c11c7aa1c0e556161e34012eb Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 5 Oct 2012 11:57:38 +0400 Subject: Perform only few list reversals in test_malloc if AO based on pthreads * tests/test_malloc.c (N_REVERSALS): Set to 4 (instead of 1000) if AO_USE_PTHREAD_DEFS. --- tests/test_malloc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_malloc.c b/tests/test_malloc.c index 090dca2..dca06da 100644 --- a/tests/test_malloc.c +++ b/tests/test_malloc.c @@ -34,7 +34,11 @@ #endif #ifndef N_REVERSALS -# define N_REVERSALS 1000 /* must be even */ +# ifdef AO_USE_PTHREAD_DEFS +# define N_REVERSALS 4 +# else +# define N_REVERSALS 1000 /* must be even */ +# endif #endif #ifndef LIST_LENGTH -- cgit v1.2.1