Commit c4ecc01a authored by Glenn Morris's avatar Glenn Morris
Browse files

Avoid elisp-mode test failures when source dir has multiple names

* test/lisp/progmodes/elisp-mode-tests.el (emacs-test-dir):
Use the true name of the directory.
parent 32fd8768
......@@ -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
(file-truename (file-name-directory
(or load-file-name (buffer-file-name))))))
;; alphabetical by test name
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment