aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/src')
-rw-r--r--test/src/fileio-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index bd827e5498f..8788c830c94 100644
--- a/test/src/fileio-tests.el
+++ b/test/src/fileio-tests.el
@@ -126,3 +126,8 @@ Also check that an encoding error can appear in a symlink."
126 (should (equal c1 (char-before))) 126 (should (equal c1 (char-before)))
127 (should (equal c1 (char-after)))))) 127 (should (equal c1 (char-after))))))
128 (if f (delete-file f))))) 128 (if f (delete-file f)))))
129
130(ert-deftest fileio-tests--relative-default-directory ()
131 "Test expand-file-name when default-directory is relative."
132 (let ((default-directory "some/relative/name"))
133 (should (file-name-absolute-p (expand-file-name "foo")))))