diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el index 03ae8481ee5..ee0837f2c4c 100644 --- a/test/lisp/progmodes/elisp-mode-tests.el +++ b/test/lisp/progmodes/elisp-mode-tests.el @@ -290,7 +290,10 @@ to (xref-elisp-test-descr-to-target xref)." ;; `load-path' has the correct case, so this causes the expected test ;; values to have the wrong case). This is handled in ;; `xref-elisp-test-run'. -(defconst emacs-test-dir (downcase (file-name-directory (or load-file-name (buffer-file-name))))) +(defconst emacs-test-dir + (downcase + (file-truename (file-name-directory + (or load-file-name (buffer-file-name)))))) ;; alphabetical by test name