File: timeout.patch

package info (click to toggle)
pocl 6.0-6
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 25,304 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 173; java: 72; xml: 49
file content (14 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Andreas Beckmann <anbe@debian.org>
Description: kill hanging tests after 30 minutes

--- a/cmake/run_test.cmake
+++ b/cmake/run_test.cmake
@@ -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