summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2026-04-22 08:48:49 +0300
committerEli Zaretskii <eliz@gnu.org>2026-04-22 08:48:49 +0300
commit6f15481be5f9705e2ec32731cda0588c7e2bb15d (patch)
tree94c4234da31501a2e0b3eab46a09b5229fc7f74f /test
parent901d4fe32a8909e8b564502970528ffe9871e60a (diff)
; Fix files-tests on MS-Windows
* test/lisp/files-tests.el (files-tests-file-name-non-special--temp-file-prefixes): Don't use a file name with '*' on MS-Windows.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/files-tests.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el
index 3fd252a8dbc..f3a2bd2df10 100644
--- a/test/lisp/files-tests.el
+++ b/test/lisp/files-tests.el
@@ -398,7 +398,10 @@ be $HOME."
(file-name-unquote temporary-file-directory))))))
(defconst files-tests-file-name-non-special--temp-file-prefixes
- '("foo" "$foo" "~foo" "foo*bar")
+ (append '("foo" "$foo" "~foo")
+ ;; No amount of quoting will allow creation of a file name
+ ;; with an embedded '*' on MS-Windows and MS-DOS.
+ (if (not (memq system-type '(windows-nt ms-dos))) '("foo*bar")))
"Prefixes to be tested for `file-name-non-special' tests.")
(ert-deftest files-tests-file-name-non-special--subprocess ()