all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Alan Third <alan@idiocy.org>
Cc: 30327@debbugs.gnu.org
Subject: bug#30327: 27.0.50; Failures in files-tests.el on macOS
Date: Fri, 02 Feb 2018 23:03:15 +0100	[thread overview]
Message-ID: <87inbfxd5o.fsf@gmx.de> (raw)
In-Reply-To: <m2o9l72kx5.fsf@breton.holly.idiocy.org> (Alan Third's message of "Fri, 02 Feb 2018 20:31:18 +0000")

[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

Alan Third <alan@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?


[-- Attachment #2: Type: text/plain, Size: 659 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 24 bytes --]


Best regards, Michael.

  parent reply	other threads:[~2018-02-02 22:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02 20:31 bug#30327: 27.0.50; Failures in files-tests.el on macOS Alan Third
2018-02-02 21:03 ` Noam Postavsky
2018-02-02 22:03 ` Michael Albinus [this message]
2018-02-02 23:04   ` Alan Third
2018-02-02 23:57     ` Philipp Stephani
2018-02-03  5:47       ` Noam Postavsky
2018-02-03 16:13         ` Alan Third
2018-02-03 16:29           ` Noam Postavsky
2018-02-03 17:26             ` Alan Third
2018-02-03 19:10               ` Michael Albinus
2018-02-03 19:38                 ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inbfxd5o.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=30327@debbugs.gnu.org \
    --cc=alan@idiocy.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.