diff options
| author | Michael Albinus | 2013-11-16 12:46:37 +0100 |
|---|---|---|
| committer | Michael Albinus | 2013-11-16 12:46:37 +0100 |
| commit | 0010ca514defbd9fde4139fd78513cdf4f303645 (patch) | |
| tree | 2bda43092f11b4eda70e2e652556f28089eadfa7 | |
| parent | 355204ddd5525864764003675651cc17ad3280eb (diff) | |
| download | emacs-0010ca514defbd9fde4139fd78513cdf4f303645.tar.gz emacs-0010ca514defbd9fde4139fd78513cdf4f303645.zip | |
* automated/tramp-tests.el (tramp-test07-file-exists-p)
(tramp-test08-file-local-copy)
(tramp-test09-insert-file-contents, tramp-test10-write-region)
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test13-make-directory, tramp-test14-delete-directory)
(tramp-test15-copy-directory, tramp-test16-directory-files)
(tramp-test17-insert-directory, tramp-test18-file-attributes)
(tramp-test19-directory-files-and-attributes)
(tramp-test20-file-modes, tramp-test21-file-links)
(tramp-test22-file-times, tramp-test23-visited-file-modtime)
(tramp-test24-file-name-completion, tramp-test25-load)
(tramp-test26-process-file, tramp-test27-start-file-process)
(tramp-test28-shell-command): Cleanup connection initially.
| -rw-r--r-- | test/ChangeLog | 16 | ||||
| -rw-r--r-- | test/automated/tramp-tests.el | 92 |
2 files changed, 106 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 13e937413af..79d9ab544e0 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2013-11-16 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * automated/tramp-tests.el (tramp-test07-file-exists-p) | ||
| 4 | (tramp-test08-file-local-copy) | ||
| 5 | (tramp-test09-insert-file-contents, tramp-test10-write-region) | ||
| 6 | (tramp-test11-copy-file, tramp-test12-rename-file) | ||
| 7 | (tramp-test13-make-directory, tramp-test14-delete-directory) | ||
| 8 | (tramp-test15-copy-directory, tramp-test16-directory-files) | ||
| 9 | (tramp-test17-insert-directory, tramp-test18-file-attributes) | ||
| 10 | (tramp-test19-directory-files-and-attributes) | ||
| 11 | (tramp-test20-file-modes, tramp-test21-file-links) | ||
| 12 | (tramp-test22-file-times, tramp-test23-visited-file-modtime) | ||
| 13 | (tramp-test24-file-name-completion, tramp-test25-load) | ||
| 14 | (tramp-test26-process-file, tramp-test27-start-file-process) | ||
| 15 | (tramp-test28-shell-command): Cleanup connection initially. | ||
| 16 | |||
| 1 | 2013-11-15 Michael Albinus <michael.albinus@gmx.de> | 17 | 2013-11-15 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 18 | ||
| 3 | * automated/tramp-tests.el (tramp-test29-utf8): Cleanup the | 19 | * automated/tramp-tests.el (tramp-test29-utf8): Cleanup the |
diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index 4f597f236ff..2bb815bda5a 100644 --- a/test/automated/tramp-tests.el +++ b/test/automated/tramp-tests.el | |||
| @@ -549,6 +549,10 @@ and `file-name-nondirectory'." | |||
| 549 | (ert-deftest tramp-test07-file-exists-p () | 549 | (ert-deftest tramp-test07-file-exists-p () |
| 550 | "Check `file-exist-p', `write-region' and `delete-file'." | 550 | "Check `file-exist-p', `write-region' and `delete-file'." |
| 551 | (skip-unless (tramp--test-enabled)) | 551 | (skip-unless (tramp--test-enabled)) |
| 552 | (tramp-cleanup-connection | ||
| 553 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 554 | nil 'keep-password) | ||
| 555 | |||
| 552 | (let ((tmp-name (tramp--test-make-temp-name))) | 556 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 553 | (should-not (file-exists-p tmp-name)) | 557 | (should-not (file-exists-p tmp-name)) |
| 554 | (write-region "foo" nil tmp-name) | 558 | (write-region "foo" nil tmp-name) |
| @@ -559,6 +563,10 @@ and `file-name-nondirectory'." | |||
| 559 | (ert-deftest tramp-test08-file-local-copy () | 563 | (ert-deftest tramp-test08-file-local-copy () |
| 560 | "Check `file-local-copy'." | 564 | "Check `file-local-copy'." |
| 561 | (skip-unless (tramp--test-enabled)) | 565 | (skip-unless (tramp--test-enabled)) |
| 566 | (tramp-cleanup-connection | ||
| 567 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 568 | nil 'keep-password) | ||
| 569 | |||
| 562 | (let ((tmp-name1 (tramp--test-make-temp-name)) | 570 | (let ((tmp-name1 (tramp--test-make-temp-name)) |
| 563 | tmp-name2) | 571 | tmp-name2) |
| 564 | (unwind-protect | 572 | (unwind-protect |
| @@ -575,6 +583,10 @@ and `file-name-nondirectory'." | |||
| 575 | (ert-deftest tramp-test09-insert-file-contents () | 583 | (ert-deftest tramp-test09-insert-file-contents () |
| 576 | "Check `insert-file-contents'." | 584 | "Check `insert-file-contents'." |
| 577 | (skip-unless (tramp--test-enabled)) | 585 | (skip-unless (tramp--test-enabled)) |
| 586 | (tramp-cleanup-connection | ||
| 587 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 588 | nil 'keep-password) | ||
| 589 | |||
| 578 | (let ((tmp-name (tramp--test-make-temp-name))) | 590 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 579 | (unwind-protect | 591 | (unwind-protect |
| 580 | (progn | 592 | (progn |
| @@ -595,6 +607,10 @@ and `file-name-nondirectory'." | |||
| 595 | (ert-deftest tramp-test10-write-region () | 607 | (ert-deftest tramp-test10-write-region () |
| 596 | "Check `write-region'." | 608 | "Check `write-region'." |
| 597 | (skip-unless (tramp--test-enabled)) | 609 | (skip-unless (tramp--test-enabled)) |
| 610 | (tramp-cleanup-connection | ||
| 611 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 612 | nil 'keep-password) | ||
| 613 | |||
| 598 | (let ((tmp-name (tramp--test-make-temp-name))) | 614 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 599 | (unwind-protect | 615 | (unwind-protect |
| 600 | (progn | 616 | (progn |
| @@ -628,6 +644,10 @@ and `file-name-nondirectory'." | |||
| 628 | (ert-deftest tramp-test11-copy-file () | 644 | (ert-deftest tramp-test11-copy-file () |
| 629 | "Check `copy-file'." | 645 | "Check `copy-file'." |
| 630 | (skip-unless (tramp--test-enabled)) | 646 | (skip-unless (tramp--test-enabled)) |
| 647 | (tramp-cleanup-connection | ||
| 648 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 649 | nil 'keep-password) | ||
| 650 | |||
| 631 | (let ((tmp-name1 (tramp--test-make-temp-name)) | 651 | (let ((tmp-name1 (tramp--test-make-temp-name)) |
| 632 | (tmp-name2 (tramp--test-make-temp-name))) | 652 | (tmp-name2 (tramp--test-make-temp-name))) |
| 633 | (unwind-protect | 653 | (unwind-protect |
| @@ -645,6 +665,10 @@ and `file-name-nondirectory'." | |||
| 645 | (ert-deftest tramp-test12-rename-file () | 665 | (ert-deftest tramp-test12-rename-file () |
| 646 | "Check `rename-file'." | 666 | "Check `rename-file'." |
| 647 | (skip-unless (tramp--test-enabled)) | 667 | (skip-unless (tramp--test-enabled)) |
| 668 | (tramp-cleanup-connection | ||
| 669 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 670 | nil 'keep-password) | ||
| 671 | |||
| 648 | (let ((tmp-name1 (tramp--test-make-temp-name)) | 672 | (let ((tmp-name1 (tramp--test-make-temp-name)) |
| 649 | (tmp-name2 (tramp--test-make-temp-name))) | 673 | (tmp-name2 (tramp--test-make-temp-name))) |
| 650 | (unwind-protect | 674 | (unwind-protect |
| @@ -662,6 +686,10 @@ and `file-name-nondirectory'." | |||
| 662 | "Check `make-directory'. | 686 | "Check `make-directory'. |
| 663 | This tests also `file-directory-p' and `file-accessible-directory-p'." | 687 | This tests also `file-directory-p' and `file-accessible-directory-p'." |
| 664 | (skip-unless (tramp--test-enabled)) | 688 | (skip-unless (tramp--test-enabled)) |
| 689 | (tramp-cleanup-connection | ||
| 690 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 691 | nil 'keep-password) | ||
| 692 | |||
| 665 | (let ((tmp-name (tramp--test-make-temp-name))) | 693 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 666 | (unwind-protect | 694 | (unwind-protect |
| 667 | (progn | 695 | (progn |
| @@ -673,6 +701,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 673 | (ert-deftest tramp-test14-delete-directory () | 701 | (ert-deftest tramp-test14-delete-directory () |
| 674 | "Check `delete-directory'." | 702 | "Check `delete-directory'." |
| 675 | (skip-unless (tramp--test-enabled)) | 703 | (skip-unless (tramp--test-enabled)) |
| 704 | (tramp-cleanup-connection | ||
| 705 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 706 | nil 'keep-password) | ||
| 707 | |||
| 676 | (let ((tmp-name (tramp--test-make-temp-name))) | 708 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 677 | ;; Delete empty directory. | 709 | ;; Delete empty directory. |
| 678 | (make-directory tmp-name) | 710 | (make-directory tmp-name) |
| @@ -689,6 +721,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 689 | (ert-deftest tramp-test15-copy-directory () | 721 | (ert-deftest tramp-test15-copy-directory () |
| 690 | "Check `copy-directory'." | 722 | "Check `copy-directory'." |
| 691 | (skip-unless (tramp--test-enabled)) | 723 | (skip-unless (tramp--test-enabled)) |
| 724 | (tramp-cleanup-connection | ||
| 725 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 726 | nil 'keep-password) | ||
| 727 | |||
| 692 | (let* ((tmp-name1 (tramp--test-make-temp-name)) | 728 | (let* ((tmp-name1 (tramp--test-make-temp-name)) |
| 693 | (tmp-name2 (tramp--test-make-temp-name)) | 729 | (tmp-name2 (tramp--test-make-temp-name)) |
| 694 | (tmp-name3 (expand-file-name | 730 | (tmp-name3 (expand-file-name |
| @@ -717,6 +753,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 717 | (ert-deftest tramp-test16-directory-files () | 753 | (ert-deftest tramp-test16-directory-files () |
| 718 | "Check `directory-files'." | 754 | "Check `directory-files'." |
| 719 | (skip-unless (tramp--test-enabled)) | 755 | (skip-unless (tramp--test-enabled)) |
| 756 | (tramp-cleanup-connection | ||
| 757 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 758 | nil 'keep-password) | ||
| 759 | |||
| 720 | (let* ((tmp-name1 (tramp--test-make-temp-name)) | 760 | (let* ((tmp-name1 (tramp--test-make-temp-name)) |
| 721 | (tmp-name2 (expand-file-name "bla" tmp-name1)) | 761 | (tmp-name2 (expand-file-name "bla" tmp-name1)) |
| 722 | (tmp-name3 (expand-file-name "foo" tmp-name1))) | 762 | (tmp-name3 (expand-file-name "foo" tmp-name1))) |
| @@ -744,6 +784,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 744 | (ert-deftest tramp-test17-insert-directory () | 784 | (ert-deftest tramp-test17-insert-directory () |
| 745 | "Check `insert-directory'." | 785 | "Check `insert-directory'." |
| 746 | (skip-unless (tramp--test-enabled)) | 786 | (skip-unless (tramp--test-enabled)) |
| 787 | (tramp-cleanup-connection | ||
| 788 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 789 | nil 'keep-password) | ||
| 790 | |||
| 747 | (let* ((tmp-name1 (tramp--test-make-temp-name)) | 791 | (let* ((tmp-name1 (tramp--test-make-temp-name)) |
| 748 | (tmp-name2 (expand-file-name "foo" tmp-name1))) | 792 | (tmp-name2 (expand-file-name "foo" tmp-name1))) |
| 749 | (unwind-protect | 793 | (unwind-protect |
| @@ -777,6 +821,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 777 | "Check `file-attributes'. | 821 | "Check `file-attributes'. |
| 778 | This tests also `file-readable-p' and `file-regular-p'." | 822 | This tests also `file-readable-p' and `file-regular-p'." |
| 779 | (skip-unless (tramp--test-enabled)) | 823 | (skip-unless (tramp--test-enabled)) |
| 824 | (tramp-cleanup-connection | ||
| 825 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 826 | nil 'keep-password) | ||
| 827 | |||
| 780 | (let ((tmp-name (tramp--test-make-temp-name)) | 828 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 781 | attr) | 829 | attr) |
| 782 | (unwind-protect | 830 | (unwind-protect |
| @@ -818,6 +866,10 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 818 | (ert-deftest tramp-test19-directory-files-and-attributes () | 866 | (ert-deftest tramp-test19-directory-files-and-attributes () |
| 819 | "Check `directory-files-and-attributes'." | 867 | "Check `directory-files-and-attributes'." |
| 820 | (skip-unless (tramp--test-enabled)) | 868 | (skip-unless (tramp--test-enabled)) |
| 869 | (tramp-cleanup-connection | ||
| 870 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 871 | nil 'keep-password) | ||
| 872 | |||
| 821 | (let ((tmp-name (tramp--test-make-temp-name)) | 873 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 822 | attr) | 874 | attr) |
| 823 | (unwind-protect | 875 | (unwind-protect |
| @@ -845,6 +897,10 @@ This tests also `file-readable-p' and `file-regular-p'." | |||
| 845 | "Check `file-modes'. | 897 | "Check `file-modes'. |
| 846 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | 898 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." |
| 847 | (skip-unless (tramp--test-enabled)) | 899 | (skip-unless (tramp--test-enabled)) |
| 900 | (tramp-cleanup-connection | ||
| 901 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 902 | nil 'keep-password) | ||
| 903 | |||
| 848 | (let ((tmp-name (tramp--test-make-temp-name))) | 904 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 849 | (unwind-protect | 905 | (unwind-protect |
| 850 | (progn | 906 | (progn |
| @@ -866,6 +922,10 @@ This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | |||
| 866 | "Check `file-symlink-p'. | 922 | "Check `file-symlink-p'. |
| 867 | This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | 923 | This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." |
| 868 | (skip-unless (tramp--test-enabled)) | 924 | (skip-unless (tramp--test-enabled)) |
| 925 | (tramp-cleanup-connection | ||
| 926 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 927 | nil 'keep-password) | ||
| 928 | |||
| 869 | (let ((tmp-name1 (tramp--test-make-temp-name)) | 929 | (let ((tmp-name1 (tramp--test-make-temp-name)) |
| 870 | (tmp-name2 (tramp--test-make-temp-name)) | 930 | (tmp-name2 (tramp--test-make-temp-name)) |
| 871 | (tmp-name3 (make-temp-name "tramp-"))) | 931 | (tmp-name3 (make-temp-name "tramp-"))) |
| @@ -915,6 +975,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 915 | (ert-deftest tramp-test22-file-times () | 975 | (ert-deftest tramp-test22-file-times () |
| 916 | "Check `set-file-times' and `file-newer-than-file-p'." | 976 | "Check `set-file-times' and `file-newer-than-file-p'." |
| 917 | (skip-unless (tramp--test-enabled)) | 977 | (skip-unless (tramp--test-enabled)) |
| 978 | (tramp-cleanup-connection | ||
| 979 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 980 | nil 'keep-password) | ||
| 981 | |||
| 918 | (let ((tmp-name1 (tramp--test-make-temp-name)) | 982 | (let ((tmp-name1 (tramp--test-make-temp-name)) |
| 919 | (tmp-name2 (tramp--test-make-temp-name)) | 983 | (tmp-name2 (tramp--test-make-temp-name)) |
| 920 | (tmp-name3 (tramp--test-make-temp-name))) | 984 | (tmp-name3 (tramp--test-make-temp-name))) |
| @@ -939,6 +1003,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 939 | (ert-deftest tramp-test23-visited-file-modtime () | 1003 | (ert-deftest tramp-test23-visited-file-modtime () |
| 940 | "Check `set-visited-file-modtime' and `verify-visited-file-modtime'." | 1004 | "Check `set-visited-file-modtime' and `verify-visited-file-modtime'." |
| 941 | (skip-unless (tramp--test-enabled)) | 1005 | (skip-unless (tramp--test-enabled)) |
| 1006 | (tramp-cleanup-connection | ||
| 1007 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1008 | nil 'keep-password) | ||
| 1009 | |||
| 942 | (let ((tmp-name (tramp--test-make-temp-name))) | 1010 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 943 | (unwind-protect | 1011 | (unwind-protect |
| 944 | (progn | 1012 | (progn |
| @@ -955,6 +1023,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 955 | (ert-deftest tramp-test24-file-name-completion () | 1023 | (ert-deftest tramp-test24-file-name-completion () |
| 956 | "Check `file-name-completion' and `file-name-all-completions'." | 1024 | "Check `file-name-completion' and `file-name-all-completions'." |
| 957 | (skip-unless (tramp--test-enabled)) | 1025 | (skip-unless (tramp--test-enabled)) |
| 1026 | (tramp-cleanup-connection | ||
| 1027 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1028 | nil 'keep-password) | ||
| 1029 | |||
| 958 | (let ((tmp-name (tramp--test-make-temp-name))) | 1030 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 959 | (unwind-protect | 1031 | (unwind-protect |
| 960 | (progn | 1032 | (progn |
| @@ -976,6 +1048,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 976 | (ert-deftest tramp-test25-load () | 1048 | (ert-deftest tramp-test25-load () |
| 977 | "Check `load'." | 1049 | "Check `load'." |
| 978 | (skip-unless (tramp--test-enabled)) | 1050 | (skip-unless (tramp--test-enabled)) |
| 1051 | (tramp-cleanup-connection | ||
| 1052 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1053 | nil 'keep-password) | ||
| 1054 | |||
| 979 | (let ((tmp-name (tramp--test-make-temp-name))) | 1055 | (let ((tmp-name (tramp--test-make-temp-name))) |
| 980 | (unwind-protect | 1056 | (unwind-protect |
| 981 | (progn | 1057 | (progn |
| @@ -993,6 +1069,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 993 | (ert-deftest tramp-test26-process-file () | 1069 | (ert-deftest tramp-test26-process-file () |
| 994 | "Check `process-file'." | 1070 | "Check `process-file'." |
| 995 | (skip-unless (tramp--test-enabled)) | 1071 | (skip-unless (tramp--test-enabled)) |
| 1072 | (tramp-cleanup-connection | ||
| 1073 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1074 | nil 'keep-password) | ||
| 1075 | |||
| 996 | (let ((tmp-name (tramp--test-make-temp-name)) | 1076 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 997 | (default-directory tramp-test-temporary-file-directory)) | 1077 | (default-directory tramp-test-temporary-file-directory)) |
| 998 | (unwind-protect | 1078 | (unwind-protect |
| @@ -1011,6 +1091,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1011 | (ert-deftest tramp-test27-start-file-process () | 1091 | (ert-deftest tramp-test27-start-file-process () |
| 1012 | "Check `start-file-process'." | 1092 | "Check `start-file-process'." |
| 1013 | (skip-unless (tramp--test-enabled)) | 1093 | (skip-unless (tramp--test-enabled)) |
| 1094 | (tramp-cleanup-connection | ||
| 1095 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1096 | nil 'keep-password) | ||
| 1097 | |||
| 1014 | (let ((default-directory tramp-test-temporary-file-directory) | 1098 | (let ((default-directory tramp-test-temporary-file-directory) |
| 1015 | (tmp-name (tramp--test-make-temp-name)) | 1099 | (tmp-name (tramp--test-make-temp-name)) |
| 1016 | kill-buffer-query-functions proc) | 1100 | kill-buffer-query-functions proc) |
| @@ -1055,6 +1139,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1055 | (ert-deftest tramp-test28-shell-command () | 1139 | (ert-deftest tramp-test28-shell-command () |
| 1056 | "Check `shell-command'." | 1140 | "Check `shell-command'." |
| 1057 | (skip-unless (tramp--test-enabled)) | 1141 | (skip-unless (tramp--test-enabled)) |
| 1142 | (tramp-cleanup-connection | ||
| 1143 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | ||
| 1144 | nil 'keep-password) | ||
| 1145 | |||
| 1058 | (let ((tmp-name (tramp--test-make-temp-name)) | 1146 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 1059 | (default-directory tramp-test-temporary-file-directory)) | 1147 | (default-directory tramp-test-temporary-file-directory)) |
| 1060 | (unwind-protect | 1148 | (unwind-protect |
| @@ -1067,10 +1155,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1067 | (ert-deftest tramp-test29-utf8 () | 1155 | (ert-deftest tramp-test29-utf8 () |
| 1068 | "Check UTF8 encoding in file names and file contents." | 1156 | "Check UTF8 encoding in file names and file contents." |
| 1069 | (skip-unless (tramp--test-enabled)) | 1157 | (skip-unless (tramp--test-enabled)) |
| 1070 | ;; TODO: It shall be possible to call it in every test. | ||
| 1071 | (tramp-cleanup-connection | 1158 | (tramp-cleanup-connection |
| 1072 | (tramp-dissect-file-name tramp-test-temporary-file-directory) | 1159 | (tramp-dissect-file-name tramp-test-temporary-file-directory) |
| 1073 | nil 'keep-password) | 1160 | nil 'keep-password) |
| 1161 | |||
| 1074 | (let ((tmp-name (tramp--test-make-temp-name)) | 1162 | (let ((tmp-name (tramp--test-make-temp-name)) |
| 1075 | (arabic "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت") | 1163 | (arabic "أصبح بوسعك الآن تنزيل نسخة كاملة من موسوعة ويكيبيديا العربية لتصفحها بلا اتصال بالإنترنت") |
| 1076 | (chinese "银河系漫游指南系列") | 1164 | (chinese "银河系漫游指南系列") |
| @@ -1086,7 +1174,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 1086 | (with-temp-buffer | 1174 | (with-temp-buffer |
| 1087 | (insert-file-contents file) | 1175 | (insert-file-contents file) |
| 1088 | (should (string-equal (buffer-string) lang))))) | 1176 | (should (string-equal (buffer-string) lang))))) |
| 1089 | ;; Check file name. | 1177 | ;; Check file names. |
| 1090 | (should (equal (directory-files | 1178 | (should (equal (directory-files |
| 1091 | tmp-name nil directory-files-no-dot-files-regexp) | 1179 | tmp-name nil directory-files-no-dot-files-regexp) |
| 1092 | (sort `(,arabic ,chinese ,russian) 'string-lessp)))) | 1180 | (sort `(,arabic ,chinese ,russian) 'string-lessp)))) |