aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2018-03-20 16:33:51 +0100
committerMichael Albinus2018-03-20 16:33:51 +0100
commit97608c60b8e0d01d59d51e32a9fdbd2bb3e2da58 (patch)
tree417f314261e32121c615c386d8ee201bb88bbe5f
parentd13a0dd273dc5f6221419267b0f5accc5f257802 (diff)
downloademacs-97608c60b8e0d01d59d51e32a9fdbd2bb3e2da58.tar.gz
emacs-97608c60b8e0d01d59d51e32a9fdbd2bb3e2da58.zip
Extend Tramp's UTF8 tests
* test/lisp/net/tramp-tests.el (tramp--test-utf8): Apply more exhaustive tests.
-rw-r--r--test/lisp/net/tramp-tests.el28
1 files changed, 22 insertions, 6 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index e8d35039779..519c98a89fd 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -4628,12 +4628,28 @@ Use the `ls' command."
4628 (coding-system-for-write utf8) 4628 (coding-system-for-write utf8)
4629 (file-name-coding-system 4629 (file-name-coding-system
4630 (coding-system-change-eol-conversion utf8 'unix))) 4630 (coding-system-change-eol-conversion utf8 'unix)))
4631 (tramp--test-check-files 4631 (apply
4632 (unless (tramp--test-hpux-p) "Γυρίστε το Γαλαξία με Ώτο Στοπ") 4632 'tramp--test-check-files
4633 (unless (tramp--test-hpux-p) 4633 (if (tramp--test-expensive-test)
4634 "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت") 4634 (delete-dups
4635 "银河系漫游指南系列" 4635 (mapcar
4636 "Автостопом по гала́ктике"))) 4636 ;; Use all available language specific snippets. Filter
4637 ;; out strings which use unencodable characters. Remove
4638 ;; slash or newline. Not Tramp's business.
4639 (lambda (x)
4640 (setq x (eval (cdr (assoc 'sample-text x))))
4641 (unless (or (null x)
4642 (unencodable-char-position
4643 nil nil file-name-coding-system nil x))
4644 (replace-regexp-in-string "[\n/]" "" x)))
4645 language-info-alist))
4646
4647 (list
4648 (unless (tramp--test-hpux-p) "Γυρίστε το Γαλαξία με Ώτο Στοπ")
4649 (unless (tramp--test-hpux-p)
4650 "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت")
4651 "银河系漫游指南系列"
4652 "Автостопом по гала́ктике")))))
4637 4653
4638(ert-deftest tramp-test39-utf8 () 4654(ert-deftest tramp-test39-utf8 ()
4639 "Check UTF8 encoding in file names and file contents." 4655 "Check UTF8 encoding in file names and file contents."