From 282280d2e803692b8d9dce5ded7d135ea8f085ea Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Fri, 3 Nov 2023 13:15:54 +0100 Subject: [PATCH] Always print output of a failing test For now this affects only the ASAN-enabled testruns that are run without "-V" in ctest's command line. Pick-to: 6.5 Change-Id: Iaa889f950e5de0657523dc9bcb457968c1cbf29e Reviewed-by: Toni Saario (cherry picked from commit 737ed178033e6dd3358fbcc87db300ab21d65b32) Reviewed-by: Qt Cherry-pick Bot --- coin/instructions/cmake_run_ctest_enforce_exit_code.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml index d9c8892573d..05cc5262fbe 100644 --- a/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml +++ b/coin/instructions/cmake_run_ctest_enforce_exit_code.yaml @@ -61,6 +61,11 @@ instructions: property: features contains_value: UseAddressSanitizer + # Always print the output from a failing test, even when ctest is not in verbose mode + - type: EnvironmentVariable + variableName: CTEST_OUTPUT_ON_FAILURE + variableValue: "1" + - type: AppendToEnvironmentVariable variableName: CTEST_ARGS variableValue: " --stop-on-failure"