From 6f15481be5f9705e2ec32731cda0588c7e2bb15d Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 22 Apr 2026 08:48:49 +0300 Subject: [PATCH] ; 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. --- test/lisp/files-tests.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ()