mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-16 09:50:25 +00:00
Skip a vc-bzr test if run as root
* test/lisp/vc/vc-bzr-tests.el (vc-bzr-test-faulty-bzr-autoloads): Skip this test when run as root. This works around a race condition in root-specific code in vc-mode-line when deleting a file. ; Do not merge to master, instead fix vc-mode-line there.
This commit is contained in:
parent
4370b8ebd9
commit
fda43a7bef
@ -112,6 +112,9 @@
|
||||
(ert-deftest vc-bzr-test-faulty-bzr-autoloads ()
|
||||
"Test we can generate autoloads in a bzr directory when bzr is faulty."
|
||||
(skip-unless (executable-find vc-bzr-program))
|
||||
;; Avoid vc-mode-line bug;
|
||||
;; http://lists.gnu.org/r/emacs-devel/2018-12/msg00368.html
|
||||
(skip-unless (not (eq 0 (user-real-uid))))
|
||||
(let* ((homedir (make-temp-file "vc-bzr-test" t))
|
||||
(bzrdir (expand-file-name "bzr" homedir))
|
||||
(file (progn
|
||||
|
Loading…
Reference in New Issue
Block a user