]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/files-tests.el (files-tests--with-temp-non-special):
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 3 Feb 2018 19:08:29 +0000 (20:08 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 3 Feb 2018 19:08:29 +0000 (20:08 +0100)
Expand `temporary-file-directory' by `file-truename', in case
it is located on a symlinked directory.  (Bug#30327)

test/lisp/files-tests.el

index 5f42b904cca35306df492c4590b5e94d901ffebe..4e1d20edf05e6183b989d1c56371b36d8526b766 100644 (file)
@@ -351,7 +351,8 @@ be invoked with the right arguments."
   (declare (indent 1) (debug ((symbolp symbolp &optional form) body)))
   (cl-check-type name symbol)
   (cl-check-type non-special-name symbol)
-  `(let* ((,name (make-temp-file "files-tests" ,dir-flag))
+  `(let* ((temporary-file-directory (file-truename temporary-file-directory))
+          (,name (make-temp-file "files-tests" ,dir-flag))
           (,non-special-name (file-name-quote ,name)))
      (unwind-protect
          (progn ,@body)