From: Mo Zhou Date: Fri, 12 Jul 2024 05:16:04 +0000 (-0400) Subject: Reduce stress of test_collaborative_call_once on __arm__. X-Git-Tag: archive/raspbian/2021.12.0-1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f035b341acbeca1a3e8f8acd1fdedf7d30352f10;p=onetbb.git Reduce stress of test_collaborative_call_once on __arm__. Last-Update: 2022-02-15 Forwarded: https://github.com/oneapi-src/oneTBB/pull/789 Gbp-Pq: Name 1010-test-less-stress.patch --- diff --git a/test/tbb/test_collaborative_call_once.cpp b/test/tbb/test_collaborative_call_once.cpp index d8ee09f..37ef418 100644 --- a/test/tbb/test_collaborative_call_once.cpp +++ b/test/tbb/test_collaborative_call_once.cpp @@ -216,6 +216,9 @@ TEST_CASE("only calls once - stress test") { // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #elif __TBB_USE_THREAD_SANITIZER // Reduce execution time under Thread Sanitizer constexpr std::size_t N = tbb::detail::d0::max_nfs_size + 64; @@ -290,6 +293,9 @@ TEST_CASE("handles exceptions - stress test") { // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #else constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 4; #endif