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.
This commit is contained in:
Ken Brown 2017-09-18 17:22:52 -04:00
parent ee512e9a82
commit 3f006b56cd

View 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)))