mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-02 11:21:42 +00:00
* automated/dbus-tests.el (dbus--test-register-service)
(dbus-test02-register-service-session): Replace `dbus-ping' calls by `dbus-list-known-names'. Fixes: debbugs:17858
This commit is contained in:
parent
b9d484082c
commit
453cac385f
@ -1,3 +1,9 @@
|
||||
2014-06-27 Michael Albinus <michael.albinus@gmx.de>
|
||||
|
||||
* automated/dbus-tests.el (dbus--test-register-service)
|
||||
(dbus-test02-register-service-session): Replace `dbus-ping' calls
|
||||
by `dbus-list-known-names'. (Bug#17858)
|
||||
|
||||
2014-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* automated/package-test.el (package-test-update-listing)
|
||||
|
@ -88,15 +88,15 @@
|
||||
|
||||
;; Register an own service.
|
||||
(should (eq (dbus-register-service bus dbus-service-emacs) :primary-owner))
|
||||
(should (dbus-ping bus dbus-service-emacs 100))
|
||||
(should (member dbus-service-emacs (dbus-list-known-names bus)))
|
||||
(should (eq (dbus-register-service bus dbus-service-emacs) :already-owner))
|
||||
(should (dbus-ping bus dbus-service-emacs 100))
|
||||
(should (member dbus-service-emacs (dbus-list-known-names bus)))
|
||||
|
||||
;; Unregister the service.
|
||||
(should (eq (dbus-unregister-service bus dbus-service-emacs) :released))
|
||||
(should-not (dbus-ping bus dbus-service-emacs 100))
|
||||
(should-not (member dbus-service-emacs (dbus-list-known-names bus)))
|
||||
(should (eq (dbus-unregister-service bus dbus-service-emacs) :non-existent))
|
||||
(should-not (dbus-ping bus dbus-service-emacs 100))
|
||||
(should-not (member dbus-service-emacs (dbus-list-known-names bus)))
|
||||
|
||||
;; `dbus-service-dbus' is reserved for the BUS itself.
|
||||
(should-error (dbus-register-service bus dbus-service-dbus))
|
||||
@ -109,7 +109,7 @@
|
||||
(dbus--test-register-service :session)
|
||||
|
||||
(let ((service "org.freedesktop.Notifications"))
|
||||
(when (dbus-ping :session service 100)
|
||||
(when (member service (dbus-list-known-names :session))
|
||||
;; Cleanup.
|
||||
(dbus-ignore-errors (dbus-unregister-service :session service))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user