[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master 51c8369: Run secrets suite test when Emacs has dbus support
From: |
Michael Albinus |
Subject: |
Re: master 51c8369: Run secrets suite test when Emacs has dbus support |
Date: |
Fri, 06 Apr 2018 09:25:22 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
address@hidden (Tino Calancha) writes:
Hi Tino,
> Run secrets suite test when Emacs has dbus support
>
> * test/lisp/net/secrets-tests.el (secrets-test00-availability)
> (secrets-test01-sessions, secrets-test02-collections)
> (secrets-test03-items, secrets-test04-search): Skip test
> unless Emacs is compiled with dbus support.
Why this? If there is no D-Bus support, secrets-enabled shall be nil,
and the tests shall skip (except secrets-test00-availability, which
shall fail). That's intended.
> (ert-deftest secrets-test00-availability ()
> "Test availability of Secret Service API."
> + (skip-unless (featurep 'dbusbind))
> :expected-result (if secrets-enabled :passed :failed)
> (should secrets-enabled)
> (should (dbus-ping :session secrets-service))
FTR, this would be wrong. :expected-result must always be the first
clause in body.
Best regards, Michael.
- Re: master 51c8369: Run secrets suite test when Emacs has dbus support,
Michael Albinus <=