]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve em-ls-test-bug27844
authorGlenn Morris <rgm@gnu.org>
Wed, 12 Dec 2018 22:01:06 +0000 (17:01 -0500)
committerGlenn Morris <rgm@gnu.org>
Wed, 12 Dec 2018 22:01:06 +0000 (17:01 -0500)
* test/lisp/eshell/em-ls-tests.el (em-ls-test-bug27844):
Skip if source-directory absent.

test/lisp/eshell/em-ls-tests.el

index c5c9eac32494a9d8a19fe72ac14f6c1e6ef21dda..ea9dbff48fc57a9c5e8db66521e9bb3149a0073a 100644 (file)
 
 (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)