summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/project-tests.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-04-18 21:43:17 +0200
committerPhilipp Stephani <phst@google.com>2021-04-18 21:59:25 +0200
commitd91e1a5701860b39ccf7fb081a48d90c450ab283 (patch)
tree579391f18f76950737f8312d347ebccf689bd322 /test/lisp/progmodes/project-tests.el
parentdc9b0dc4616e63fb0e30a4fd79ffc196ebcac73b (diff)
downloademacs-d91e1a5701860b39ccf7fb081a48d90c450ab283.tar.gz
Skip a unit test that requires an external program if necessary.
* 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.
Diffstat (limited to 'test/lisp/progmodes/project-tests.el')
-rw-r--r--test/lisp/progmodes/project-tests.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/progmodes/project-tests.el b/test/lisp/progmodes/project-tests.el
index 23e68541b3d..6e71948477c 100644
--- a/test/lisp/progmodes/project-tests.el
+++ b/test/lisp/progmodes/project-tests.el
@@ -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)))