From: Ivan Maidanski Date: Wed, 20 Dec 2017 21:37:54 +0000 (+0300) Subject: Prevent too long run of test_atomic_generalized (especially with TSan) X-Git-Tag: v7.6.2~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af76b0c9a9a94b1a8f1b4f845a7906a047af12ef;p=libatomic_ops Prevent too long run of test_atomic_generalized (especially with TSan) * tests/test_atomic.c [AO_PREFER_GENERALIZED] (NITERS): Set to a smaller value (the same one as for AO_USE_PTHREAD_DEFS). --- diff --git a/tests/test_atomic.c b/tests/test_atomic.c index e4a19a5..eed7dea 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -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