From: Glenn Morris Date: Thu, 1 Jun 2017 01:11:47 +0000 (-0400) Subject: Avoid elisp-mode test failures when source dir has multiple names X-Git-Tag: emacs-26.0.90~521^2~207 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c4ecc01a45c6dd183f0ecf65e4c4c2c39beea278;p=emacs.git 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. --- 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