From: Glenn Morris Date: Wed, 12 Dec 2018 22:01:06 +0000 (-0500) Subject: Improve em-ls-test-bug27844 X-Git-Tag: emacs-27.0.90~4000^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f318300959c1a72fd1f97fddfd71a22ea53e8226;p=emacs.git Improve em-ls-test-bug27844 * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Skip if source-directory absent. --- 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)