; Fix dired-tests on MS-Windows

* test/lisp/dired-tests.el (dired-test-filename-with-backslash-n):
Skip this test on MS-Windows and MS-DOS.
This commit is contained in:
Eli Zaretskii
2026-03-26 08:10:06 +02:00
parent f2b9b827c9
commit 55c752d631

View File

@@ -687,6 +687,8 @@ The current directory at call time should not affect the result (Bug#50630)."
"Test file name containing literal backslash-n sequence.
Dired should not treat this sequence as a newline character, regardless
of the value of `dired-auto-toggle-b-switch'."
;; File names with backslashes in basename are not allowed on MS systems.
(skip-when (memq system-type '(windows-nt ms-dos)))
(with-current-buffer "*Messages*"
(let ((inhibit-read-only t))
(erase-buffer)))