From: Dmitry Gutov Date: Fri, 1 Nov 2024 00:32:10 +0000 (+0200) Subject: project-tests: Add test assertion for bug#73801 X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~2^2~20^2~298 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0f9d48e99ce10e92e19e20ea9d2872a176ea6f8f;p=emacs.git 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) --- 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." (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."