emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 fcf6cc3: Fix problem with wdired test when symlin


From: Juanma Barranquero
Subject: [Emacs-diffs] emacs-26 fcf6cc3: Fix problem with wdired test when symlinks cannot be created.
Date: Sun, 16 Jun 2019 16:00:15 -0400 (EDT)

branch: emacs-26
commit fcf6cc3177a2404eea82a5e3f4b7118e22ca5094
Author: Juanma Barranquero <address@hidden>
Commit: Juanma Barranquero <address@hidden>

    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.
---
 test/lisp/wdired-tests.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/lisp/wdired-tests.el b/test/lisp/wdired-tests.el
index dc67796..b0beb3c 100644
--- a/test/lisp/wdired-tests.el
+++ b/test/lisp/wdired-tests.el
@@ -86,7 +86,11 @@ only the name before the link arrow."
     (let ((buf (find-file-noselect test-dir)))
       (unwind-protect
          (with-current-buffer buf
-            (make-symbolic-link "./bar/baz" link-name)
+            (skip-unless
+             ;; 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))
             (revert-buffer)
             (let* ((file-name (dired-get-filename))
                    (dir-part (file-name-directory file-name))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]