]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix files-tests broken by a recent change
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 May 2023 11:07:36 +0000 (14:07 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 May 2023 11:07:36 +0000 (14:07 +0300)
* test/lisp/files-tests.el
(files-tests-safe-local-variable-directories): Fix this test:
since we are now using 'file-equal-p' the directory used as a safe
one should actually exist.  (Bug#61901)

test/lisp/files-tests.el

index e87bb3cfa0ad4304afb2fcd2ec702ca1f6ba2380..f6c7be88b05e01330473a7d24a432e1e0fecf704 100644 (file)
@@ -170,7 +170,7 @@ form.")
   ;; safe-local-variable-directories should be risky,
   ;; so use it as an arbitrary risky variable.
   (let ((test-alist '((safe-local-variable-directories . "some_val")))
-        (fakedir "/test1/test2/")
+        (fakedir default-directory)
         (enable-local-eval t))
     (with-temp-buffer
       (setq safe-local-variable-directories (list fakedir))