GNU bug report logs - #30327
27.0.50; Failures in files-tests.el on macOS

Previous Next

Package: emacs;

Reported by: Alan Third <alan <at> idiocy.org>

Date: Fri, 2 Feb 2018 20:33:02 UTC

Severity: normal

Tags: fixed

Found in version 27.0.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 30327 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alan Third <alan <at> idiocy.org>
Cc: 30327 <at> debbugs.gnu.org
Subject: Re: bug#30327: 27.0.50; Failures in files-tests.el on macOS
Date: Fri, 02 Feb 2018 23:03:15 +0100
[Message part 1 (text/plain, inline)]
Alan Third <alan <at> idiocy.org> writes:

Hi Alan,

> Today I ran make check and two new failures popped up. It looks like
> they're from recent additions to files-tests.el.
>
> Log file attached.
>
> Test files-tests-file-name-non-special-file-truename condition:
>     (ert-test-failed
>      ((should
>        (equal nospecial
> 	      (file-truename nospecial)))
>       :form
>       (equal "/:/var/folders/rs/0j9q5wvj5qv1h4p08j_dnbvw0000gn/T/files-testskeK4ZJ" "/:/private/var/folders/rs/0j9q5wvj5qv1h4p08j_dnbvw0000gn/T/files-testskeK4ZJ")

My crystal ball tells me, that your temporary-file-directory is located
on a symlinked directory.

Does the following patch cures it?

[Message part 2 (text/plain, inline)]
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 90e5ebf215..61e22a47af 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -353,7 +353,8 @@ files-tests--with-temp-file
   (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)
[Message part 3 (text/plain, inline)]
Best regards, Michael.

This bug report was last modified 7 years and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.