aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2024-11-01 02:32:10 +0200
committerDmitry Gutov2024-11-01 02:35:08 +0200
commit0f9d48e99ce10e92e19e20ea9d2872a176ea6f8f (patch)
treef358de254bdc1ac2037e200bffdfbace461464e4
parentb4b0d5a8532a4e519835b68b8fb7048c9de51000 (diff)
downloademacs-0f9d48e99ce10e92e19e20ea9d2872a176ea6f8f.tar.gz
emacs-0f9d48e99ce10e92e19e20ea9d2872a176ea6f8f.zip
project-tests: Add test assertion for bug#73801
* 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)
-rw-r--r--test/lisp/progmodes/project-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/lisp/progmodes/project-tests.el b/test/lisp/progmodes/project-tests.el
index 93943cef43b..1583732016b 100644
--- a/test/lisp/progmodes/project-tests.el
+++ b/test/lisp/progmodes/project-tests.el
@@ -138,7 +138,11 @@ When `project-ignores' includes a name matching project dir."
138 (project (project-current nil dir))) 138 (project (project-current nil dir)))
139 (should-not (null project)) 139 (should-not (null project))
140 (should (nth 1 project)) 140 (should (nth 1 project))
141 (should (string-match-p "/test/lisp/\\'" (project-root project))))) 141 (should (string-match-p "/test/lisp/\\'" (project-root project)))
142 ;; bug#73801
143 (should (equal
144 project
145 (project-current nil (project-root project))))))
142 146
143(ert-deftest project-vc-supports-project-in-different-dir () 147(ert-deftest project-vc-supports-project-in-different-dir ()
144 "Check that it picks up dir-locals settings from somewhere else." 148 "Check that it picks up dir-locals settings from somewhere else."