aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2015-12-22 12:02:58 +0100
committerMichael Albinus2015-12-22 12:02:58 +0100
commit75a005d39b97e2272d1d9a0443d2135fef4c4720 (patch)
tree7076222eecc97d9d7657001cc14600a2c3e285fc
parent8fe2adc8a8732959057b116e5e16889698924644 (diff)
downloademacs-75a005d39b97e2272d1d9a0443d2135fef4c4720.tar.gz
emacs-75a005d39b97e2272d1d9a0443d2135fef4c4720.zip
Instrument Tramp tests
* test/automated/tramp-tests.el (tramp-test29-vc-registered) (tramp--test-utf8): Instrument tests.
-rw-r--r--test/automated/tramp-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el
index a0be10e3954..97b2ffed267 100644
--- a/test/automated/tramp-tests.el
+++ b/test/automated/tramp-tests.el
@@ -1601,6 +1601,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1601 (tramp-find-foreign-file-name-handler tramp-test-temporary-file-directory) 1601 (tramp-find-foreign-file-name-handler tramp-test-temporary-file-directory)
1602 'tramp-sh-file-name-handler)) 1602 'tramp-sh-file-name-handler))
1603 1603
1604 (tramp--instrument-test-case 10
1604 (let* ((default-directory tramp-test-temporary-file-directory) 1605 (let* ((default-directory tramp-test-temporary-file-directory)
1605 (tmp-name1 (tramp--test-make-temp-name)) 1606 (tmp-name1 (tramp--test-make-temp-name))
1606 (tmp-name2 (expand-file-name "foo" tmp-name1)) 1607 (tmp-name2 (expand-file-name "foo" tmp-name1))
@@ -1652,7 +1653,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
1652 (should (vc-registered tmp-name2))) 1653 (should (vc-registered tmp-name2)))
1653 1654
1654 ;; Cleanup. 1655 ;; Cleanup.
1655 (ignore-errors (delete-directory tmp-name1 'recursive))))) 1656 (ignore-errors (delete-directory tmp-name1 'recursive))))))
1656 1657
1657(ert-deftest tramp-test30-make-auto-save-file-name () 1658(ert-deftest tramp-test30-make-auto-save-file-name ()
1658 "Check `make-auto-save-file-name'." 1659 "Check `make-auto-save-file-name'."
@@ -2025,6 +2026,7 @@ Use the `ls' command."
2025 2026
2026(defun tramp--test-utf8 () 2027(defun tramp--test-utf8 ()
2027 "Perform the test in `tramp-test32-utf8*'." 2028 "Perform the test in `tramp-test32-utf8*'."
2029 (tramp--instrument-test-case 10
2028 (let ((coding-system-for-read 'utf-8) 2030 (let ((coding-system-for-read 'utf-8)
2029 (coding-system-for-write 'utf-8) 2031 (coding-system-for-write 'utf-8)
2030 (file-name-coding-system 'utf-8)) 2032 (file-name-coding-system 'utf-8))
@@ -2033,7 +2035,7 @@ Use the `ls' command."
2033 (unless (or (tramp--test-hpux-p) (tramp--test-darwin-p)) 2035 (unless (or (tramp--test-hpux-p) (tramp--test-darwin-p))
2034 "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت") 2036 "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت")
2035 "银河系漫游指南系列" 2037 "银河系漫游指南系列"
2036 "Автостопом по гала́ктике"))) 2038 "Автостопом по гала́ктике"))))
2037 2039
2038(ert-deftest tramp-test32-utf8 () 2040(ert-deftest tramp-test32-utf8 ()
2039 "Check UTF8 encoding in file names and file contents." 2041 "Check UTF8 encoding in file names and file contents."