From 3f006b56cdd9dff313ea88fcedad122968fe1e6b Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Mon, 18 Sep 2017 17:22:52 -0400 Subject: [PATCH] Adapt fileio-tests--symlink-failure to Cygwin * test/src/fileio-tests.el (fileio-tests--symlink-failure) [CYGWIN]: Skip the case of a symlink target starting with '\'; this is treated specially on Cygwin. --- test/src/fileio-tests.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el index a56fb4474d6..01c280d2752 100644 --- a/test/src/fileio-tests.el +++ b/test/src/fileio-tests.el @@ -35,6 +35,8 @@ (char 0)) (while (and (not failure) (< char 127)) (setq char (1+ char)) + (when (and (eq system-type 'cygwin) (eq char 92)) + (setq char (1+ char))) (setq failure (try-link (string char) link))) (or failure (try-link "/:" link))) -- 2.39.5