diff --git a/test/common/graph_utils.h b/test/common/graph_utils.h index 26a0c0ada0..714a27f79b 100644 --- a/test/common/graph_utils.h +++ b/test/common/graph_utils.h @@ -953,7 +953,7 @@ template void test_lightweight(unsigned N) { test_unlimited_lightweight_execution(N); test_limited_lightweight_execution(N, tbb::flow::serial); - test_limited_lightweight_execution(N, (std::min)(std::thread::hardware_concurrency() / 2, N/2)); + test_limited_lightweight_execution(N, (std::min)((std::thread::hardware_concurrency()+1) / 2, N/2)); test_limited_lightweight_execution_with_throwing_body(N, tbb::flow::serial); }