diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-12-30 11:28:36 -0500 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2025-12-30 11:28:36 -0500 |
| commit | 18b29bd58d1daa1752e981488445e0fcb100f2a7 (patch) | |
| tree | 0f4f2a5f62536ea80c7cd50801bc06d916e5c165 /tests | |
| parent | 67c290158cdb12b755c17b404f0eb63bc40eac73 (diff) | |
| download | stasis-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.c | 1 |
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(); } |
