kill hanging tests after 30 minutes
authorAndreas Beckmann <anbe@debian.org>
Mon, 24 Jun 2024 09:29:13 +0000 (11:29 +0200)
committerAndreas Beckmann <anbe@debian.org>
Mon, 24 Jun 2024 09:29:13 +0000 (11:29 +0200)
Gbp-Pq: Name timeout.patch

cmake/run_test.cmake

index 41f13bf88b0a1b004c108a1ad3e6fd61c01ad4cd..ec33ba269deea496df7e2eca3d623f617a48b887 100644 (file)
@@ -12,7 +12,7 @@ endif()
 string(REPLACE "####" ";" test_cmd_separated "${test_cmd}")
 
 execute_process(
-  COMMAND ${test_cmd_separated}
+  COMMAND timeout -k 60 1800 ${test_cmd_separated}
   RESULT_VARIABLE test_not_successful
   OUTPUT_VARIABLE stdout
   ERROR_VARIABLE stderr