summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2017-09-18 17:22:52 -0400
committerKen Brown <kbrown@cornell.edu>2017-09-18 17:22:52 -0400
commit3f006b56cdd9dff313ea88fcedad122968fe1e6b (patch)
tree71207210157c32055ea09168803932bef0510f15 /test
parentee512e9a825a6dbdf438a432b75b7e18d9a983c7 (diff)
downloademacs-3f006b56cdd9dff313ea88fcedad122968fe1e6b.tar.gz
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.
Diffstat (limited to 'test')
-rw-r--r--test/src/fileio-tests.el2
1 files changed, 2 insertions, 0 deletions
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)))