summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2018-07-08 13:02:19 +0200
committerMichael Albinus <michael.albinus@gmx.de>2018-07-08 13:02:19 +0200
commite02d8e29c6009dbaf04d3e1668f476ba000c7f02 (patch)
tree61ffd7ae3eeb5410fe69b21cb22272a6c5a14b0e /test
parentda5d6dbe3974a8012d4fb6a0281d583965742aaa (diff)
downloademacs-e02d8e29c6009dbaf04d3e1668f476ba000c7f02.tar.gz
Fix Bug#32084
* test/lisp/net/dbus-tests.el (dbus-test02-register-service-own-bus): Unset $DISPLAY when calling dbus-launch, in order to avoid possible X11 authentication errors. (Bug#32084)
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/dbus-tests.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/net/dbus-tests.el b/test/lisp/net/dbus-tests.el
index 624d15ef5f1..8fcb8a564bb 100644
--- a/test/lisp/net/dbus-tests.el
+++ b/test/lisp/net/dbus-tests.el
@@ -133,7 +133,8 @@ This includes initialization and closing the bus."
;; Start bus.
(let ((output
(ignore-errors
- (shell-command-to-string "dbus-launch --sh-syntax")))
+ (shell-command-to-string
+ "env DISPLAY= dbus-launch --sh-syntax --close-stderr")))
bus pid)
(skip-unless (stringp output))
(when (string-match "DBUS_SESSION_BUS_ADDRESS='\\(.+\\)';" output)