aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-12-30 11:28:36 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-12-30 11:28:36 -0500
commit18b29bd58d1daa1752e981488445e0fcb100f2a7 (patch)
tree0f4f2a5f62536ea80c7cd50801bc06d916e5c165 /tests
parent67c290158cdb12b755c17b404f0eb63bc40eac73 (diff)
downloadstasis-18b29bd58d1daa1752e981488445e0fcb100f2a7.tar.gz
Implement task timeout
* Add argument: --task-timeout=1[s,m,h] * Timed out tasks are SIGKILL'd * If killing a task fails, the entire program ends
Diffstat (limited to 'tests')
-rw-r--r--tests/test_multiprocessing.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_multiprocessing.c b/tests/test_multiprocessing.c
index 7c9d695..b10f530 100644
--- a/tests/test_multiprocessing.c
+++ b/tests/test_multiprocessing.c
@@ -214,6 +214,7 @@ int main(int argc, char *argv[]) {
test_mp_fail_fast,
test_mp_stop_continue
};
+ globals.task_timeout = 60;
STASIS_TEST_RUN(tests);
STASIS_TEST_END_MAIN();
}