]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip a unit test that requires an external program if necessary.
authorPhilipp Stephani <phst@google.com>
Sun, 18 Apr 2021 19:43:17 +0000 (21:43 +0200)
committerPhilipp Stephani <phst@google.com>
Sun, 18 Apr 2021 19:59:25 +0000 (21:59 +0200)
* test/lisp/progmodes/project-tests.el (project/quoted-directory):
Skip if the 'find' program isn't available.  The 'project-files'
function uses 'find' to obtain the list of project files.

test/lisp/progmodes/project-tests.el

index 23e68541b3d6f3af0df4c91c62fc4b50b8b5765f..6e71948477c53fc6def8340af9d0962a4506a8ab 100644 (file)
@@ -32,6 +32,7 @@
 (ert-deftest project/quoted-directory ()
   "Check that `project-files' deals with quoted directory
 names (Bug#47799)."
+  (skip-unless (executable-find find-program))
   (let ((directory (make-temp-file "project-tests-" :directory)))
     (unwind-protect
         (let ((project (cons 'transient (file-name-quote directory)))