From 72f3ba95a86b766d5aced3704fc8012b32cf87d9 Mon Sep 17 00:00:00 2001 From: Daan Leijen Date: Mon, 17 Apr 2023 12:08:22 -0700 Subject: [PATCH] reduce iterations under tsan --- test/test-stress.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test-stress.c b/test/test-stress.c index c6236b77..c0de8910 100644 --- a/test/test-stress.c +++ b/test/test-stress.c @@ -26,7 +26,12 @@ terms of the MIT license. // argument defaults static int THREADS = 32; // more repeatable if THREADS <= #processors static int SCALE = 25; // scaling factor + +#if defined(MI_TSAN) +static int ITER = 10; // N full iterations destructing and re-creating all threads (on tsan reduce for azure pipeline limits) +#else static int ITER = 50; // N full iterations destructing and re-creating all threads +#endif // static int THREADS = 8; // more repeatable if THREADS <= #processors // static int SCALE = 100; // scaling factor