Prevent too long run of test_atomic_generalized (especially with TSan)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 20 Dec 2017 21:37:54 +0000 (00:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 22 Dec 2017 07:46:56 +0000 (10:46 +0300)
* tests/test_atomic.c [AO_PREFER_GENERALIZED] (NITERS): Set to a smaller
value (the same one as for AO_USE_PTHREAD_DEFS).

tests/test_atomic.c

index e4a19a5..eed7dea 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "test_atomic_include.h"
 
-#ifdef AO_USE_PTHREAD_DEFS
+#if defined(AO_USE_PTHREAD_DEFS) || defined(AO_PREFER_GENERALIZED)
 # define NITERS 100000
 #else
 # define NITERS 10000000