[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tests, Emacs-25 and Conditional Features
From: |
Michael Albinus |
Subject: |
Re: Tests, Emacs-25 and Conditional Features |
Date: |
Wed, 16 Mar 2016 15:29:12 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
address@hidden (Phillip Lord) writes:
> Second, should tests assume that all the conditional features (gnutls,
> libxml) are available? If the answer is no, then how can we test that
> conditional features are present when they should be; if the answer is
> yes, then do we want tests that will fail some of the time.
In your tests, you could check the presence of a feature, and skip if it
isn't present. Like this:
(skip-unless (gnutls-available-p))
(skip-unless (functionp 'libxml-parse-xml-region))
> Phil
Best regards, Michael.
- Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/16
- Re: Tests, Emacs-25 and Conditional Features,
Michael Albinus <=
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/17
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/17
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Michael Albinus, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Eli Zaretskii, 2016/03/18
- Re: Tests, Emacs-25 and Conditional Features, Phillip Lord, 2016/03/19