[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 3e132b972e3 3/3: Fix files-tests broken by a recent change
From: |
Eli Zaretskii |
Subject: |
master 3e132b972e3 3/3: Fix files-tests broken by a recent change |
Date: |
Fri, 12 May 2023 07:07:18 -0400 (EDT) |
branch: master
commit 3e132b972e30c5b0cb75ed29d8ca5a845434d6fe
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix files-tests broken by a recent change
* 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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index e87bb3cfa0a..f6c7be88b05 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -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))