A top-level ctest TIMEOUT does not reach tests defined in sub-directories
PitfallVerified 7 Oct 2026Holds project: dftracer-utils
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.
Symptom#
Tests such as groupby_scale and test_view_duql time out although the top-level CMake list sets a timeout.
Cause#
The timeout set in the top-level CMake list never matched tests defined in sub-directory CMake lists.
Fix#
Set the TIMEOUT property in each sub-directory CMake list for its own tests. Fuzz tests under the coverage preset need far more time than on macOS: 900 s was not enough, so 1800 s was used.
Evidence#
From an observed note of 2026-10-07: "A test timeout set in the top-level CMake list never matched tests defined in sub-directory CMake lists, such as groupby_scale and test_view_duql. Each sub-directory list must set its own TIMEOUT property."
Also found by searching
- ctest TIMEOUT set at top level does not apply to sub-directory tests
- groupby_scale test hits default timeout
- fuzz test times out under the coverage preset
- how do I set a test timeout for tests in a sub-directory CMakeLists