]> git.eshelyaron.com Git - emacs.git/commitdiff
project-tests: Add test assertion for bug#73801
authorDmitry Gutov <dmitry@gutov.dev>
Fri, 1 Nov 2024 00:32:10 +0000 (02:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:21:12 +0000 (14:21 +0100)
* test/lisp/progmodes/project-tests.el
(project-vc-extra-root-markers-supports-wildcards): End with a
check that we didn't cache a wrong value for parent (bug#73801).

(cherry picked from commit 94a9e40e82d4180563d7bddfa0cc6c8990824f8d)

test/lisp/progmodes/project-tests.el

index 402bde4e03bd26e778ce1a561d5bd892ad300b1b..8ed6225e32f43d978576056f86b8830c84953380 100644 (file)
@@ -138,7 +138,11 @@ When `project-ignores' includes a name matching project dir."
          (project (project-current nil dir)))
     (should-not (null project))
     (should (nth 1 project))
-    (should (string-match-p "/test/lisp/\\'" (project-root project)))))
+    (should (string-match-p "/test/lisp/\\'" (project-root project)))
+    ;; bug#73801
+    (should (equal
+             project
+             (project-current nil (project-root project))))))
 
 (ert-deftest project-vc-supports-project-in-different-dir ()
   "Check that it picks up dir-locals settings from somewhere else."