cmake: add time out to tests to avoid ci timeouts

This commit is contained in:
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} COMMAND ${TESTCASE}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) )
set_tests_properties( set_tests_properties(${TESTCASE}
${TESTCASE} PROPERTIES
PROPERTIES ENVIRONMENT "${TESTS_ENVIRONMENT}" ENVIRONMENT "${TESTS_ENVIRONMENT}"
TIMEOUT 10
) )
if(SDL_INSTALL_TESTS) if(SDL_INSTALL_TESTS)
set(exe ${TESTCASE}) set(exe ${TESTCASE})
@ -420,6 +421,9 @@ foreach(TESTCASE ${SDL_TESTS_NONINTERACTIVE})
endif() endif()
endforeach() endforeach()
set_tests_properties(testthread PROPERTIES TIMEOUT 40)
set_tests_properties(testtimer PROPERTIES TIMEOUT 60)
if(SDL_INSTALL_TESTS) if(SDL_INSTALL_TESTS)
if(RISCOS) if(RISCOS)
install( install(