From f318300959c1a72fd1f97fddfd71a22ea53e8226 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 12 Dec 2018 17:01:06 -0500 Subject: [PATCH] Improve em-ls-test-bug27844 * test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844): Skip if source-directory absent. --- test/lisp/eshell/em-ls-tests.el | 5 +++++ 1 file changed, 5 insertions(+) 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)