emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 3f006b5: Adapt fileio-tests--symlink-failure to C


From: Ken Brown
Subject: [Emacs-diffs] emacs-26 3f006b5: Adapt fileio-tests--symlink-failure to Cygwin
Date: Mon, 18 Sep 2017 17:23:23 -0400 (EDT)

branch: emacs-26
commit 3f006b56cdd9dff313ea88fcedad122968fe1e6b
Author: Ken Brown <address@hidden>
Commit: Ken Brown <address@hidden>

    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 a56fb44..01c280d 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]