Function: ert--skip-when
ert--skip-when is a macro defined in ert.el.gz.
Signature
(ert--skip-when FORM)
Documentation
Evaluate FORM. If it returns t, skip the current test.
Errors during evaluation are caught and handled like t.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(cl-defmacro ert--skip-when (form)
"Evaluate FORM. If it returns t, skip the current test.
Errors during evaluation are caught and handled like t."
(declare (debug t))
(ert--expand-should `(skip-when ,form) form
(lambda (inner-form form-description-form _value-var)
`(when (condition-case nil ,inner-form (t t))
(ert-skip ,form-description-form)))))