Skip to content

Commit

Permalink
Add option to not set --pika:threads option in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Dec 19, 2024
1 parent dd07842 commit 2d80e98
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/pika_add_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ function(pika_add_test category name)
elseif(${name}_THREADS EQUAL -2)
set(${name}_THREADS "cores")
set(run_serial TRUE)
elseif(${name}_THREADS EQUAL -3)
set(${name}_THREADS "default")
set(run_serial TRUE)
endif()
endif()

set(args "--pika:threads=${${name}_THREADS}")
set(args)
if(NOT ${name}_THREADS STREQUAL "default")
set(args ${args} "--pika:threads=${${name}_THREADS}")
endif()
if(PIKA_WITH_TESTS_DEBUG_LOG)
set(args ${args} "--pika:log-destination=${PIKA_WITH_TESTS_DEBUG_LOG_DESTINATION}")
set(args ${args} "--pika:log-level=0")
Expand Down

0 comments on commit 2d80e98

Please sign in to comment.