Skip to content

Commit

Permalink
Do not run oneTBB tests in parallel
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus committed Jan 4, 2025
1 parent 8659619 commit 3ee903c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2024 Intel Corporation
# Copyright (c) 2020-2025 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,6 +66,7 @@ function(tbb_add_test)
endif()

set_property(TEST ${_tbb_test_TARGET_NAME} PROPERTY ENVIRONMENT ${TBB_TESTS_ENVIRONMENT} APPEND)
set_property(TEST ${_tbb_test_TARGET_NAME} PROPERTY RUN_SERIAL TRUE)

# Prefer using target_link_options instead of target_link_libraries to specify link options because
# target_link_libraries may incorrectly handle some options (on Windows, for example).
Expand Down Expand Up @@ -111,6 +112,7 @@ function(tbb_add_c_test)
endif()

set_property(TEST ${_tbb_test_NAME} PROPERTY ENVIRONMENT ${TBB_TESTS_ENVIRONMENT} APPEND)
set_property(TEST ${_tbb_test_NAME} PROPERTY RUN_SERIAL TRUE)

target_compile_definitions(${_tbb_test_NAME} PRIVATE
$<$<CONFIG:DEBUG>:TBB_USE_DEBUG>
Expand Down

0 comments on commit 3ee903c

Please sign in to comment.