1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00

Improve em-ls-test-bug27844

* test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844):
Skip if source-directory absent.
This commit is contained in:
Glenn Morris 2018-12-12 17:01:06 -05:00
parent 8a247f6059
commit f318300959

View File

@ -78,6 +78,11 @@
(ert-deftest em-ls-test-bug27844 () (ert-deftest em-ls-test-bug27844 ()
"Test for https://debbugs.gnu.org/27844 ." "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) (let ((orig eshell-ls-use-in-dired)
(dired-use-ls-dired 'unspecified) (dired-use-ls-dired 'unspecified)
buf insert-directory-program) buf insert-directory-program)