summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2017-12-21 00:37:54 +0300
committerIvan Maidanski <ivmai@mail.ru>2017-12-22 10:46:56 +0300
commitaf76b0c9a9a94b1a8f1b4f845a7906a047af12ef (patch)
tree6bc5f62abc7d66585802c2301df46bb8e7f90b6d /tests
parent0627b26b747b946c988d2ed4ce466691b1f4e98d (diff)
downloadlibatomic_ops-af76b0c9a9a94b1a8f1b4f845a7906a047af12ef.tar.gz
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).
Diffstat (limited to 'tests')
-rw-r--r--tests/test_atomic.c2
1 files changed, 1 insertions, 1 deletions
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