diff options
| author | Dmitry Gutov | 2024-11-01 02:32:10 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2024-11-01 02:32:10 +0200 |
| commit | 94a9e40e82d4180563d7bddfa0cc6c8990824f8d (patch) | |
| tree | 3c39985cae993e4b6546d9e0f8abe046ec6eeb30 | |
| parent | 33997047e891d5513c4f33ab78ad353746ed16e2 (diff) | |
| download | emacs-94a9e40e82d4180563d7bddfa0cc6c8990824f8d.tar.gz emacs-94a9e40e82d4180563d7bddfa0cc6c8990824f8d.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).
| -rw-r--r-- | test/lisp/progmodes/project-tests.el | 6 |
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." |