cmake: add time out to tests to avoid ci timeouts
parent
2e47016b01
commit
55534e277e
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue