kill hanging tests after 30 minutes
authorAndreas Beckmann <anbe@debian.org>
Fri, 15 Oct 2021 16:22:36 +0000 (17:22 +0100)
committerAndreas Beckmann <anbe@debian.org>
Fri, 15 Oct 2021 16:22:36 +0000 (17:22 +0100)
Gbp-Pq: Name timeout.patch

cmake/run_test.cmake

index 5ea265bbd32eedc833a8dae3b0738964b9cea0ae..259dc8f19ee3177d2ff463bb17524bea20235de6 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