diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/progmodes/project-tests.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/project-tests.el b/test/lisp/progmodes/project-tests.el index aea0666629d..5a206b67db1 100644 --- a/test/lisp/progmodes/project-tests.el +++ b/test/lisp/progmodes/project-tests.el | |||
| @@ -152,4 +152,14 @@ When `project-ignores' includes a name matching project dir." | |||
| 152 | (should (equal '(".dir-locals.el" "foo") | 152 | (should (equal '(".dir-locals.el" "foo") |
| 153 | (mapcar #'file-name-nondirectory (project-files project)))))) | 153 | (mapcar #'file-name-nondirectory (project-files project)))))) |
| 154 | 154 | ||
| 155 | (ert-deftest project-vc-nonexistent-directory-no-error () | ||
| 156 | "Check that is doesn't error out when the current dir does not exist." | ||
| 157 | (skip-unless (eq (vc-responsible-backend default-directory) 'Git)) | ||
| 158 | (let* ((dir (expand-file-name "foo-456/bar/" (ert-resource-directory))) | ||
| 159 | (_ (vc-file-clearprops dir)) | ||
| 160 | (project-vc-extra-root-markers '(".dir-locals.el")) | ||
| 161 | (project (project-current nil dir))) | ||
| 162 | (should-not (null project)) | ||
| 163 | (should (string-match-p "/test/lisp/progmodes/project-resources/\\'" (project-root project))))) | ||
| 164 | |||
| 155 | ;;; project-tests.el ends here | 165 | ;;; project-tests.el ends here |