emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]