]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt fileio-tests--symlink-failure to Cygwin
authorKen Brown <kbrown@cornell.edu>
Mon, 18 Sep 2017 21:22:52 +0000 (17:22 -0400)
committerKen Brown <kbrown@cornell.edu>
Mon, 18 Sep 2017 21:22:52 +0000 (17:22 -0400)
* 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

index a56fb4474d6021f31f6353b81484679355db9cb8..01c280d2752cb8b324e1efd27414262c704574ed 100644 (file)
@@ -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)))