]> git.eshelyaron.com Git - emacs.git/commitdiff
project-find-regexp: Fix test
authorDmitry Gutov <dmitry@gutov.dev>
Sun, 5 May 2024 16:42:05 +0000 (19:42 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:55:43 +0000 (18:55 +0200)
* 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).

(cherry picked from commit 696b1cb8de2cbd808d572edbd3beca4813af3514)

test/lisp/progmodes/project-tests.el

index 84a5d55f1360b398096d184348ae3b68b35e3c53..21703cbdad61e9dc4d31a077421024ea564f544b 100644 (file)
@@ -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))