From 55c752d631bcadd53e78b0798b813f50f90aefa9 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 26 Mar 2026 08:10:06 +0200 Subject: [PATCH] ; 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. --- test/lisp/dired-tests.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el index 559e113a24c..671a6c89d96 100644 --- a/test/lisp/dired-tests.el +++ b/test/lisp/dired-tests.el @@ -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)))