FAIL_REGULAR_EXPRESSION.rst 552 B

12345678910111213141516171819
  1. FAIL_REGULAR_EXPRESSION
  2. -----------------------
  3. If the output matches this regular expression the test will fail,
  4. regardless of the process exit code.
  5. If set, if the output matches one of specified regular expressions,
  6. the test will fail. Example:
  7. .. code-block:: cmake
  8. set_tests_properties(mytest PROPERTIES
  9. FAIL_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"
  10. )
  11. ``FAIL_REGULAR_EXPRESSION`` expects a list of regular expressions.
  12. See also the :prop_test:`PASS_REGULAR_EXPRESSION` and
  13. :prop_test:`SKIP_REGULAR_EXPRESSION` test properties.