Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Extra output in CMake ctest output #3183

Copy link
Copy link

Description

@SimeonEhrig
Issue body actions

Description
We use catch2 together with CMake ctest. We run the tests with ctest --output-on-failure. If the test fails, we want to get some additional information, like which GPU we used. The problem is controlling which output is displayed. In the best case, we want to have the FAIL() macro without that the test fails. It prints on stderr and only if the test fails.

We could use INFO() or WARN() together with the -s flag, but then we get the output also for passing tests and the output can be very verbose.

Is there a solution, to print extra information on stderr only in the case that a test fails?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.