summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov <dmitry@gutov.dev>2024-05-05 19:42:05 +0300
committerDmitry Gutov <dmitry@gutov.dev>2024-05-05 19:43:06 +0300
commit696b1cb8de2cbd808d572edbd3beca4813af3514 (patch)
tree0aa5246820adafdfef22da23f954e8893b380c1f /test
parentd5b6627faa9bbd0059600a91d1cd45c0b31e3cd8 (diff)
downloademacs-696b1cb8de2cbd808d572edbd3beca4813af3514.tar.gz
project-find-regexp: Fix test
* test/lisp/progmodes/project-tests.el (project-find-regexp): Add binding for project-list-file, to fix the test when running in the terminal (reported on the mailing list).
Diffstat (limited to 'test')
-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 84a5d55f136..21703cbdad6 100644
--- a/test/lisp/progmodes/project-tests.el
+++ b/test/lisp/progmodes/project-tests.el
@@ -170,6 +170,7 @@ When `project-ignores' includes a name matching project dir."
(skip-unless (executable-find "grep"))
(let* ((directory (ert-resource-directory))
(project-find-functions nil)
+ (project-list-file (expand-file-name "emacs-projects" temporary-file-directory))
(project (cons 'transient directory)))
(add-hook 'project-find-functions (lambda (_dir) project))
(should (eq (project-current) project))