diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-11-20 09:36:42 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-11-20 09:36:42 +0100 |
commit | 0bdf18befde4765290d06bf11c2bf332ff5f0fe6 (patch) | |
tree | 75108ca08350dcb2ab32c5bfa5afee1e914f0e3c | |
parent | 1319a3be441e5b0d53c4e000d55bec7c62a9fb6c (diff) | |
download | org-mode-0bdf18befde4765290d06bf11c2bf332ff5f0fe6.tar.gz |
test-ob: Fix failing test on MacOS
* testing/lisp/test-ob.el (test-ob/indented-cached-org-bracket-link):
Use `expand-file-name' to prevent introducing "//" patterns in file
name.
Reported-by: David Talmage <david.talmage@shoutpoint.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/110285>
-rw-r--r-- | testing/lisp/test-ob.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el index a03df7b..1b6897f 100644 --- a/testing/lisp/test-ob.el +++ b/testing/lisp/test-ob.el @@ -26,15 +26,15 @@ should still return the link." (should (let ((default-directory temporary-file-directory)) (org-test-with-temp-text - " + " * Test #+<point>BEGIN_SRC emacs-lisp :file test.txt :cache yes (message \"test\") #+END_SRC" - ;; Execute twice as the first time creates the cache. - (org-babel-execute-src-block) - (string= (concat default-directory "test.txt") - (org-babel-execute-src-block)))))) + ;; Execute twice as the first time creates the cache. + (org-babel-execute-src-block) + (string= (expand-file-name "test.txt") + (org-babel-execute-src-block)))))) (ert-deftest test-ob/multi-line-header-regexp () (should(equal "^[ \t]*#\\+headers?:[ \t]*\\([^\n]*\\)$" |