test-less-stress
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Tue, 16 May 2023 10:23:01 +0000 (11:23 +0100)
committerAndreas Beckmann <anbe@debian.org>
Tue, 16 May 2023 10:23:01 +0000 (11:23 +0100)
Forward: https://github.com/oneapi-src/oneTBB/pull/789

===================================================================

Gbp-Pq: Name test-less-stress.patch

test/tbb/test_collaborative_call_once.cpp

index 2ffa283f55cb6e109eee0c2e5090040bc84c8bd6..5c26db854e09b69886d8fdb6c6bb9453ed4a85f1 100644 (file)
@@ -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;
 #else 
     constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 4;
 #endif
@@ -287,6 +290,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