diff options
author | Glenn Morris <rgm@gnu.org> | 2018-12-12 17:01:06 -0500 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2018-12-12 17:01:06 -0500 |
commit | f318300959c1a72fd1f97fddfd71a22ea53e8226 (patch) | |
tree | 08654a93f7d0881054550dae17e95291f4560b2a /test/lisp | |
parent | 8a247f6059066636fbb60e79f6a9580ee9a81495 (diff) | |
download | emacs-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')
-rw-r--r-- | test/lisp/eshell/em-ls-tests.el | 5 |
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) |