cmake: add time out to tests to avoid ci timeouts

main
Anonymous Maarten 2022-11-01 15:39:13 +01:00 committed by Anonymous Maarten
parent 2e47016b01
commit 55534e277e
1 changed files with 7 additions and 3 deletions

View File

@ -405,9 +405,10 @@ foreach(TESTCASE ${SDL_TESTS_NONINTERACTIVE})
COMMAND ${TESTCASE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
set_tests_properties(
${TESTCASE}
PROPERTIES ENVIRONMENT "${TESTS_ENVIRONMENT}"
set_tests_properties(${TESTCASE}
PROPERTIES
ENVIRONMENT "${TESTS_ENVIRONMENT}"
TIMEOUT 10
)
if(SDL_INSTALL_TESTS)
set(exe ${TESTCASE})
@ -420,6 +421,9 @@ foreach(TESTCASE ${SDL_TESTS_NONINTERACTIVE})
endif()
endforeach()
set_tests_properties(testthread PROPERTIES TIMEOUT 40)
set_tests_properties(testtimer PROPERTIES TIMEOUT 60)
if(SDL_INSTALL_TESTS)
if(RISCOS)
install(