0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 18:36:26 +00:00

Fix false test failure

* testing/lisp/test-org.el (test-org/refile-get-targets): Fix false
failures when test temp-file path contains a symlink.

TINYCHANGE
This commit is contained in:
Galen Menzel 2017-08-10 22:43:39 +02:00 committed by Nicolas Goaziou
parent 9945e029f5
commit 8fa6c015a4

View file

@ -5497,7 +5497,7 @@ Paragraph<point>"
;; full file name.
(should
(org-test-with-temp-text-in-file "* H1"
(let* ((filename (buffer-file-name))
(let* ((filename (file-truename (buffer-file-name)))
(org-refile-use-outline-path 'full-file-path)
(org-refile-targets `(((,filename) :level . 1))))
(member filename (mapcar #'car (org-refile-get-targets))))))