summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CTestTimeout
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Do not expect EINTR when sleep is interrupted on GNU/HurdMattias Ellert2023-12-081-1/+1
| | | | | | Previously `RunCMake.CTestTimeout` failed on GNU/Hurd because the `sleep` command does not set `errno` to `EINTR` when interrupted by a signal, which is a Linux-specific feature.
* ctest: Restore support for --timeout values higher than default test timeoutBrad King2023-09-292-0/+13
| | | | | | | | | | | | Since refactoring in commit 0a5aeaf302 (cmCTestRunTest: Consolidate test timeout selection logic, 2023-05-04, v3.27.0-rc1~120^2) we accidentally truncate `--timeout` values to ctest's default `TimeOut`. Fix the logic to prefer the flag whenever the `TIMEOUT` property is not set. In combination with the prior refactoring, this also fixes a bug that caused `--timeout` values of 10000000 seconds or more to be ignored. Fixes: #23979
* Tests: Clarify RunCMake.CTestTimeout case nameBrad King2023-09-292-2/+2
|
* CTest: Fix regression in calculating test timeoutKyle Edwards2023-07-242-0/+13
| | | | Fixes: #25120
* ctest: Optionally terminate tests with a custom signal on timeoutBrad King2023-06-0215-1/+199
| | | | | | | | CTest normally terminates test processes on timeout using `SIGKILL`. Offer tests a chance to exit gracefully, on platforms supporting POSIX signals, by setting `TIMEOUT_SIGNAL_{NAME,GRACE_PERIOD}` properties. Fixes: #17288
* ctest: Fix TIMEOUT test property with value 0 with --timeout flagBrad King2023-05-042-1/+8
| | | | | An explicit zero TIMEOUT test property value should not be overridden by the `--timeout` flag.
* Tests: Move `CTestTestZeroTimeout` into `RunCMake.CTestTimeout`Brad King2023-05-043-2/+18
|
* RunCMake/CTestTimeout: Include sched.h for pid_tRaul Tambre2022-06-271-0/+1
| | | | | ISO C modes in Clang don't enable modern POSIX standards. Include sched.h to define pid_t in such modes.
* CTest: Fix reported duration on timeout when grindchild keeps pipes openBrad King2020-03-262-2/+2
| | | | | | | | | | Since commit d1976cd1f2 (CTest: Fix timeout when grandchild keeps pipes open, 2020-01-13, v3.17.0-rc1~169^2) we no longer hang, but the test duration we report after the timeout is the amount of time the immediate child ran before exiting. Fix the logic to instead report the actual amount of time we spent monitoring the test before the timeout. Fixes: #20509
* CTest: Fix timeout when grandchild keeps pipes openBrad King2020-01-143-0/+21
| | | | | | | | | | | When a test's process creates its own child and exits, the grandchild may keep pipes open. Fix CTest logic to correctly timeout if the grandchild does not exit and close the pipes before the timeout expires. This was broken by commit b5e21d7d2e (CTest: Re-implement test process handling using libuv, 2017-12-10, v3.11.0-rc1~117^2) which added an unnecessary condition to the timeout handling. Fixes: #20116
* Tests: Add RunCMake.CTestTimeout testBrad King2020-01-145-0/+68
This test will consolidate CTest timeout-related tests.