emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master a961dce: Don't test "\t" in file names on Cygwin.


From: Ken Brown
Subject: [Emacs-diffs] master a961dce: Don't test "\t" in file names on Cygwin.
Date: Mon, 16 Mar 2015 20:20:34 +0000

branch: master
commit a961dcedeb7ae84c0ca6e8e1b94d3dd881a26b98
Author: Ken Brown <address@hidden>
Commit: Ken Brown <address@hidden>

    Don't test "\t" in file names on Cygwin.
    
    Fixes: debbugs:20119
    
    * test/automated/tramp-tests.el (tramp--test-special-characters): Don't
    test "\t" in file names on Cygwin.
---
 test/ChangeLog                |    5 +++++
 test/automated/tramp-tests.el |    9 ++++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/test/ChangeLog b/test/ChangeLog
index 6a474e1..a7d1dfd 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-16  Ken Brown  <address@hidden>
+
+       * automated/tramp-tests.el (tramp--test-special-characters): Don't
+       test "\t" in file names on Cygwin.  (Bug#20119)
+
 2015-03-10  Jackson Ray Hamilton  <address@hidden>
 
        * indent/js-indent-init-dynamic.js: Fix spelling error.
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el
index 020f31f..9ba6743 100644
--- a/test/automated/tramp-tests.el
+++ b/test/automated/tramp-tests.el
@@ -1621,12 +1621,15 @@ This requires restrictions of file name syntax."
 
 (defun tramp--test-special-characters ()
   "Perform the test in `tramp-test30-special-characters*'."
-  ;; Newlines, slashes and backslashes in file names are not supported.
-  ;; So we don't test.
+  ;; Newlines, slashes and backslashes in file names are not
+  ;; supported.  So we don't test.  And we don't test the tab
+  ;; character on Windows or Cygwin, because the backslash is
+  ;; interpreted as a path separator, preventing "\t" from being
+  ;; expanded to <TAB>.
   (tramp--test-check-files
    (if (tramp--test-smb-or-windows-nt-p)
        "foo bar baz"
-     (if (tramp--test-adb-p)
+     (if (or (tramp--test-adb-p) (eq system-type 'cygwin))
         " foo bar baz "
        " foo\tbar baz\t"))
    "$foo$bar$$baz$"



reply via email to

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