summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2012-10-05 11:57:38 +0400
committerIvan Maidanski <ivmai@mail.ru>2012-10-05 11:57:38 +0400
commit21d9bf203448221c11c7aa1c0e556161e34012eb (patch)
tree2716c38e7090e7ce75e0658004a253828aca425f /tests
parentcc2f224c35c7d6109ea475ca24f9a5902b2364fc (diff)
downloadlibatomic_ops-21d9bf203448221c11c7aa1c0e556161e34012eb.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_malloc.c6
1 files changed, 5 insertions, 1 deletions
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