Skip to content

Commit

Permalink
test/CMakeLists.txt: bumped CTest timeout to accommodate macos-* ru…
Browse files Browse the repository at this point in the history
…nner slowness (#6704)

The `macos-*` runners are much slower than the other leading to sporadic
timeouts when running CTest with a debug build in the CI.
  • Loading branch information
firewave authored Aug 17, 2024
1 parent d89e241 commit 97277b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ if (BUILD_TESTS)
include(ProcessorCount)
ProcessorCount(N)
set(CTEST_PARALLEL_LEVEL ${N} CACHE STRING "CTest parallel level")
set(CTEST_TIMEOUT 90 CACHE STRING "CTest timeout")
# the macos-* runners are sporadically much slower than other runners so chose a high timeout
set(CTEST_TIMEOUT 130 CACHE STRING "CTest timeout")
add_custom_target(check ${CMAKE_CTEST_COMMAND} --output-on-failure -j ${CTEST_PARALLEL_LEVEL} -C ${CMAKE_CFG_INTDIR} --timeout ${CTEST_TIMEOUT}
DEPENDS testrunner cppcheck)

Expand Down

0 comments on commit 97277b0

Please sign in to comment.