]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't fail uniquify-tests in non-version-controlled source trees
authorMattias EngdegÄrd <mattiase@acm.org>
Fri, 13 Sep 2024 10:13:53 +0000 (12:13 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:29:45 +0000 (22:29 +0200)
* test/lisp/uniquify-tests.el (uniquify-project-transform):
Skip test if there is no project (bug#73205).

(cherry picked from commit ca3932121a893df3c4b08dbe11f2c002da4a421f)

test/lisp/uniquify-tests.el

index 4124ce056d31af3516230904db7a10fe52eaa78f..9b33c9d7d4768a5158a3ba255375ba5406e9aed6 100644 (file)
@@ -129,6 +129,7 @@ uniquify-trailing-separator-p is ignored"
 (require 'project)
 (ert-deftest uniquify-project-transform ()
   "`project-uniquify-dirname-transform' works"
+  (skip-unless (project-current nil source-directory))
   (let ((uniquify-dirname-transform #'project-uniquify-dirname-transform)
         (project-vc-name "foo1/bar")
         bufs)