]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid elisp-mode test failures when source dir has multiple names
authorGlenn Morris <rgm@gnu.org>
Thu, 1 Jun 2017 01:11:47 +0000 (21:11 -0400)
committerGlenn Morris <rgm@gnu.org>
Thu, 1 Jun 2017 01:11:47 +0000 (21:11 -0400)
* test/lisp/progmodes/elisp-mode-tests.el (emacs-test-dir):
Use the true name of the directory.

test/lisp/progmodes/elisp-mode-tests.el

index 03ae8481ee56e8f8126a50d039ccaa972326b2ca..ee0837f2c4c5c2a0b3bcc773a12a0c2cea6e62f3 100644 (file)
@@ -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