emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 f55c0f0: Suppress test on Mac OS X


From: Michael Albinus
Subject: [Emacs-diffs] emacs-25 f55c0f0: Suppress test on Mac OS X
Date: Sun, 20 Dec 2015 17:51:36 +0000

branch: emacs-25
commit f55c0f0c501bb343b68dd41b4fd30a2534bf78db
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Suppress test on Mac OS X
    
    * test/automated/tramp-tests.el (tramp--test-darwin-p): New defun.
    (tramp--test-utf8): Use it.
---
 test/automated/tramp-tests.el |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el
index 8a1743c..a0be10e 100644
--- a/test/automated/tramp-tests.el
+++ b/test/automated/tramp-tests.el
@@ -1772,6 +1772,14 @@ Several special characters do not work properly there."
       (file-truename tramp-test-temporary-file-directory) nil
     (string-match "^HP-UX" (tramp-get-connection-property v "uname" ""))))
 
+(defun tramp--test-darwin-p ()
+  "Check, whether the remote host runs Mac OS X.
+Several special characters do not work properly there."
+  ;; We must refill the cache.  `file-truename' does it.
+  (with-parsed-tramp-file-name
+      (file-truename tramp-test-temporary-file-directory) nil
+    (string-match "^Darwin" (tramp-get-connection-property v "uname" ""))))
+
 (defun tramp--test-check-files (&rest files)
   "Run a simple but comprehensive test over every file in FILES."
   ;; We must use `file-truename' for the temporary directory, because
@@ -2022,7 +2030,7 @@ Use the `ls' command."
        (file-name-coding-system 'utf-8))
     (tramp--test-check-files
      (unless (tramp--test-hpux-p) "Γυρίστε το Γαλαξία με Ώτο Στοπ")
-     (unless (tramp--test-hpux-p)
+     (unless (or (tramp--test-hpux-p) (tramp--test-darwin-p))
        "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها 
بلا اتصال بالإنترنت")
      "银河系漫游指南系列"
      "Автостопом по гала́ктике")))



reply via email to

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