CTest: How do I expect the test to fail with the exact output?
Hello. I need to add a test which behaves like this:
If test command returns a non-zero code AND stdout/stderr of the command match some regex then my test should pass otherwise it should fail.
Unfortunately, I didn't figure out how can I achieve this by using WILL_FAIL, PASS_REGULAR_EXPRESSION, FAIL_REGULAR_EXPRESSION, etc. How can I do it? Thanks for answer in advance.