1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-12 01:42:37 -07:00

Fix eglot-tests on MacOS (bug#80479)

* test/lisp/progmodes/eglot-tests.el (eglot--call-with-fixture):
Normalise 'temporary-file-directory' to stave off problems that
occur when it contains symlinks, which is common on MacOS.
This commit is contained in:
Mattias Engdegård 2026-02-24 21:42:44 +01:00
parent a84530ac2e
commit 8c5be1a7a6

View file

@ -85,7 +85,8 @@ directory hierarchy."
(defun eglot--call-with-fixture (fixture fn)
"Helper for `eglot--with-fixture'. Run FN under FIXTURE."
(let* ((fixture-directory (make-nearby-temp-file "eglot--fixture-" t))
(let* ((temporary-file-directory (file-truename temporary-file-directory))
(fixture-directory (make-nearby-temp-file "eglot--fixture-" t))
(default-directory (file-name-as-directory fixture-directory))
created-files
new-servers