From: Ivan Maidanski Date: Fri, 5 Oct 2012 07:57:38 +0000 (+0400) Subject: Perform only few list reversals in test_malloc if AO based on pthreads X-Git-Tag: libatomic_ops-7_4_0~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21d9bf203448221c11c7aa1c0e556161e34012eb;p=libatomic_ops 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. --- 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