emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master c4ecc01: Avoid elisp-mode test failures when source


From: Glenn Morris
Subject: [Emacs-diffs] master c4ecc01: Avoid elisp-mode test failures when source dir has multiple names
Date: Wed, 31 May 2017 21:11:54 -0400 (EDT)

branch: master
commit c4ecc01a45c6dd183f0ecf65e4c4c2c39beea278
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    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.
---
 test/lisp/progmodes/elisp-mode-tests.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/test/lisp/progmodes/elisp-mode-tests.el 
b/test/lisp/progmodes/elisp-mode-tests.el
index 03ae848..ee0837f 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]