Commit 55534e277ef81a917f6b78b680faac7b498e89c8

Anonymous Maarten 2022-11-01T15:39:13

cmake: add time out to tests to avoid ci timeouts

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index a396ad5..676a8e7 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -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(