I use CTest and PASS_REGULAR_EXPRESSION PROPERTIES.
[\ S \ s] * did not work, but (. | \ R | \ n) * did work.
This is a regex:
Function registered for ID 2 was called(.|\r|\n)*PASS
Matches:
Running test function: RegisterThreeDiffItemsTest04 ID 2 registered for callback ID 4 registered for callback ID 11 registered for callback Function registered for ID 2 was called ID 2 callback deregistered ID 4 callback deregistered ID 11 callback deregistered Setup: PASS
Note. CMakeLists.txt must be escaped from backslash:
SET (ANDPASS "(.|\\r|\\n)*PASS")
source share