From: Andreas Beckmann Date: Sun, 2 Apr 2023 23:08:50 +0000 (+0100) Subject: kill hanging tests after 30 minutes X-Git-Tag: archive/raspbian/3.1-3+deb12u1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7c53406c7a96ea08b9abe3caeabdff39ad27dec4;p=pocl.git kill hanging tests after 30 minutes Gbp-Pq: Name timeout.patch --- diff --git a/cmake/run_test.cmake b/cmake/run_test.cmake index 41f13bf..ec33ba2 100644 --- 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