From 505535cb040af842697b8f5f396b047c23d80438 Mon Sep 17 00:00:00 2001 From: frstrtr Date: Fri, 12 Jun 2026 20:03:00 +0000 Subject: [PATCH] test: defer test_utxo discovery to PRE_TEST mode gtest_discover_tests(test_utxo) ran discovery as a POST_BUILD step, which under cmake --build -j$(nproc) races concurrent test targets and can spuriously mark heavy targets (v37_test) Not Run. DISCOVERY_MODE PRE_TEST defers enumeration to ctest runtime, removing it from the parallel build graph entirely. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b349820c0..c6c6bd82d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -34,7 +34,7 @@ if (BUILD_TESTING AND GTest_FOUND) ${Boost_LIBRARIES} ) target_link_libraries(test_utxo PRIVATE c2pool_payout c2pool_merged_mining c2pool_hashrate c2pool_storage ltc_coin pool) # OBJECT-lib SCC direct-naming (#22/#39) - gtest_discover_tests(test_utxo) + gtest_discover_tests(test_utxo DISCOVERY_MODE PRE_TEST) # defer discovery to ctest runtime; fixes -j(nproc) build-time discovery race vs v37_test (PR #84) add_executable(test_redistribute_address test_redistribute_address.cpp) target_link_libraries(test_redistribute_address PRIVATE