From af76b0c9a9a94b1a8f1b4f845a7906a047af12ef Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 21 Dec 2017 00:37:54 +0300 Subject: [PATCH] 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). --- tests/test_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.7.4