SKIP_REGULAR_EXPRESSION.rst 514 B

12345678910111213141516171819
  1. SKIP_REGULAR_EXPRESSION
  2. -----------------------
  3. .. versionadded:: 3.16
  4. If the output matches this regular expression the test will be marked as skipped.
  5. If set, if the output matches one of specified regular expressions,
  6. the test will be marked as skipped. Example:
  7. .. code-block:: cmake
  8. set_property(TEST mytest PROPERTY
  9. SKIP_REGULAR_EXPRESSION "[^a-z]Skip" "SKIP" "Skipped"
  10. )
  11. ``SKIP_REGULAR_EXPRESSION`` expects a list of regular expressions.
  12. See also the :prop_test:`SKIP_RETURN_CODE` property.