From 1a3ebab048cc8d15d6c199354fee1414894184d1 Mon Sep 17 00:00:00 2001 From: CyberKun <186809931+CyberKun@users.noreply.github.com> Date: Mon, 16 Nov 2026 09:31:25 +0530 Subject: [PATCH] Fix extra argument boundaries in CMake test discovery Signed-off-by: CyberKun <186809931+CyberKun@users.noreply.github.com> --- extras/CatchAddTests.cmake | 2 +- tests/TestScripts/DiscoverTests/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index aba0d0019b..764da957a5 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -404,7 +404,7 @@ function(catch_discover_tests_impl) "${_TEST_EXECUTABLE}" ) prepare_command_fragment(_args_reporter_fragment - "${extra_args}" + ${extra_args} "${reporter_arg}" "--order decl" ) diff --git a/tests/TestScripts/DiscoverTests/CMakeLists.txt b/tests/TestScripts/DiscoverTests/CMakeLists.txt index 8ae0decb67..9aa9342995 100644 --- a/tests/TestScripts/DiscoverTests/CMakeLists.txt +++ b/tests/TestScripts/DiscoverTests/CMakeLists.txt @@ -18,6 +18,7 @@ catch_discover_tests( TEST_PREFIX " prefix " TEST_SUFFIX " suffix " ADD_TAGS_AS_LABELS + EXTRA_ARGS --colour-mode none --name "discovery regression tests" DISCOVERY_MODE PRE_TEST ${extra_args} )