]> granicus.if.org Git - libatomic_ops/commitdiff
Perform only few list reversals in test_malloc if AO based on pthreads
authorIvan Maidanski <ivmai@mail.ru>
Fri, 5 Oct 2012 07:57:38 +0000 (11:57 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 5 Oct 2012 07:57:38 +0000 (11:57 +0400)
* tests/test_malloc.c (N_REVERSALS): Set to 4 (instead of 1000) if
AO_USE_PTHREAD_DEFS.

tests/test_malloc.c

index 090dca232c6d78ce619affc8d1aaed7a6d53b44b..dca06da94e21879a4a3e573d33b9821ec8282cab 100644 (file)
 #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