From 07379a249fc4dc65c7d524664c165aa83814c4fe Mon Sep 17 00:00:00 2001 From: Joao Cordeiro Date: Fri, 24 Apr 2026 11:19:58 +0100 Subject: [PATCH] Fix tests build on modern glibc systems by disabling Catch2 POSIX signals --- tests/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b1e699b2..e0fcf482 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include/) include_directories(SYSTEM ${CATCH_INCLUDE}) +# Disable Catch2 POSIX signal handling (breaks on modern glibc where SIGSTKSZ is not constexpr) +add_compile_definitions(CATCH_CONFIG_NO_POSIX_SIGNALS) + if (NOT KAFKA_TEST_INSTANCE) set(KAFKA_TEST_INSTANCE kafka-vm:9092 CACHE STRING "The kafka instance to which to connect to run tests")