From 44131b044daf3a7084424b4551d1c01cfe07b5cc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 10 May 2022 23:54:21 +0200 Subject: [PATCH] Use the same number of iterations in atomic unit test Use reasonably, but not too, big number, so that the test doesn't run too long, even when TSAN is used. This also simplifies the code. --- tests/thread/atomic.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/thread/atomic.cpp b/tests/thread/atomic.cpp index 2d8ce31a97..0ec7362f3d 100644 --- a/tests/thread/atomic.cpp +++ b/tests/thread/atomic.cpp @@ -27,13 +27,7 @@ WX_DEFINE_ARRAY_PTR(wxThread *, wxArrayThread); // constants // ---------------------------------------------------------------------------- -// number of times to run the loops: the code takes too long to run if we use -// the bigger value with generic atomic operations implementation -#ifdef wxHAS_ATOMIC_OPS - static const wxInt32 ITERATIONS_NUM = 10000000; -#else - static const wxInt32 ITERATIONS_NUM = 1000; -#endif +static const wxInt32 ITERATIONS_NUM = 10000; // ---------------------------------------------------------------------------- // test class