From 009366888c3d149140888b718790cd3e9fd96de1 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Mon, 14 Aug 2023 14:53:17 +0100 Subject: [PATCH] kill hanging tests after 30 minutes Gbp-Pq: Name timeout.patch --- cmake/run_test.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2