From 8399d04b447d5b1b41d79be049c4f41840b0d3f8 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Sat, 1 Aug 2026 19:14:31 +0800 Subject: [PATCH] build: raise gtest discovery timeout to 60s Freshly linked binaries can exceed the 5s default on first run (dyld cold cache + Qt/OCIO init). --- engine/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/CMakeLists.txt b/engine/CMakeLists.txt index c3eff981a..19703d95b 100644 --- a/engine/CMakeLists.txt +++ b/engine/CMakeLists.txt @@ -287,7 +287,9 @@ if (BUILD_TESTS) if (UNIX AND NOT APPLE) target_link_options(${name} PRIVATE "LINKER:--export-dynamic") endif () - gtest_discover_tests(${name}) + # Freshly linked binaries can exceed the 5s default discovery + # timeout on first run (dyld cold cache + Qt/OCIO init) + gtest_discover_tests(${name} DISCOVERY_TIMEOUT 60) endfunction() make_oakengine_gtest(oakengine_ipc_test)