summaryrefslogtreecommitdiff
path: root/test/lisp/eshell/em-ls-tests.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2018-12-12 17:01:06 -0500
committerGlenn Morris <rgm@gnu.org>2018-12-12 17:01:06 -0500
commitf318300959c1a72fd1f97fddfd71a22ea53e8226 (patch)
tree08654a93f7d0881054550dae17e95291f4560b2a /test/lisp/eshell/em-ls-tests.el
parent8a247f6059066636fbb60e79f6a9580ee9a81495 (diff)
downloademacs-f318300959c1a72fd1f97fddfd71a22ea53e8226.tar.gz
Improve em-ls-test-bug27844
* test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Skip if source-directory absent.
Diffstat (limited to 'test/lisp/eshell/em-ls-tests.el')
-rw-r--r--test/lisp/eshell/em-ls-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lisp/eshell/em-ls-tests.el b/test/lisp/eshell/em-ls-tests.el
index c5c9eac3249..ea9dbff48fc 100644
--- a/test/lisp/eshell/em-ls-tests.el
+++ b/test/lisp/eshell/em-ls-tests.el
@@ -78,6 +78,11 @@
(ert-deftest em-ls-test-bug27844 ()
"Test for https://debbugs.gnu.org/27844 ."
+ ;; FIXME: it would be better to use something other than source-directory
+ ;; in this test.
+ (skip-unless (and source-directory
+ (file-exists-p
+ (expand-file-name "lisp/subr.el" source-directory))))
(let ((orig eshell-ls-use-in-dired)
(dired-use-ls-dired 'unspecified)
buf insert-directory-program)