Commit fcf6cc31 authored by Juanma Barranquero's avatar Juanma Barranquero

Fix problem with wdired test when symlinks cannot be created.

* test/lisp/wdired-tests.el (wdired-test-symlink-name):
Skip test if 'make-symbolic-link' fails for whatever reason;
that's not what's being tested.
parent 4701e066
Pipeline #2111 passed with stage
in 30 minutes and 50 seconds
......@@ -86,7 +86,11 @@ only the name before the link arrow."
(let ((buf (find-file-noselect test-dir)))
(with-current-buffer buf
(make-symbolic-link "./bar/baz" link-name)
;; This check is for wdired, not symbolic links, so skip
;; it when make-symbolic-link fails for any reason (like
;; insufficient privileges).
(ignore-errors (make-symbolic-link "./bar/baz" link-name) t))
(let* ((file-name (dired-get-filename))
(dir-part (file-name-directory file-name))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment