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 <toni.saario@qt.io>
(cherry picked from commit 737ed178033e6dd3358fbcc87db300ab21d65b32)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Dimitrios Apostolou 2023-11-03 13:15:54 +01:00 committed by Qt Cherry-pick Bot
parent 28ba848dfa
commit 282280d2e8

View File

@ -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"