FAIL_REGULAR_EXPRESSION.rst 406 B

123456789101112131415
  1. FAIL_REGULAR_EXPRESSION
  2. -----------------------
  3. If the output matches this regular expression the test will fail.
  4. If set, if the output matches one of specified regular expressions,
  5. the test will fail. Example:
  6. .. code-block:: cmake
  7. set_tests_properties(mytest PROPERTIES
  8. FAIL_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"
  9. )
  10. ``FAIL_REGULAR_EXPRESSION`` expects a list of regular expressions.