Skip to content

Commit

Permalink
Always print output of a failing test
Browse files Browse the repository at this point in the history
For now this affects only the ASAN-enabled testruns that are run
without "-V" in ctest's command line.

Pick-to: 6.6 6.5
Change-Id: Iaa889f950e5de0657523dc9bcb457968c1cbf29e
Reviewed-by: Toni Saario <[email protected]>
  • Loading branch information
jimis committed Nov 5, 2023
1 parent 6780195 commit 737ed17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions coin/instructions/cmake_run_ctest_enforce_exit_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 737ed17

Please sign in to comment.