diff options
| author | Michael Albinus | 2018-02-01 15:00:18 +0100 |
|---|---|---|
| committer | Michael Albinus | 2018-02-01 15:00:18 +0100 |
| commit | 01932c8decb79ab1b7bd5736f41fcfb604ab5141 (patch) | |
| tree | 1b83f569e52396789e8edbb0aad8c8ca75fb761a /test | |
| parent | 855ae578ab8999df56e54531815d6a15c67d85aa (diff) | |
| download | emacs-01932c8decb79ab1b7bd5736f41fcfb604ab5141.tar.gz emacs-01932c8decb79ab1b7bd5736f41fcfb604ab5141.zip | |
Revert a1bbc49015 (Bug#30243), do not merge
* lisp/files.el:
* test/lisp/net/tramp-tests.el: Revert a1bbc49015. (Bug#30243)
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 38 |
1 files changed, 17 insertions, 21 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 49d506bdd9e..996a31d375f 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -1882,9 +1882,9 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 1882 | "Check `copy-file'." | 1882 | "Check `copy-file'." |
| 1883 | (skip-unless (tramp--test-enabled)) | 1883 | (skip-unless (tramp--test-enabled)) |
| 1884 | 1884 | ||
| 1885 | ;; `filename-non-special' has been fixed in Emacs 26.1, see Bug#29579. | 1885 | ;; TODO: The quoted case does not work. Copy local file to remote. |
| 1886 | (dolist (quoted (if (and tramp--test-expensive-test (tramp--test-emacs26-p)) | 1886 | ;;(dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| 1887 | '(nil t) '(nil))) | 1887 | (let (quoted) |
| 1888 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) | 1888 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) |
| 1889 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) | 1889 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) |
| 1890 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) | 1890 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) |
| @@ -1984,9 +1984,9 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 1984 | "Check `rename-file'." | 1984 | "Check `rename-file'." |
| 1985 | (skip-unless (tramp--test-enabled)) | 1985 | (skip-unless (tramp--test-enabled)) |
| 1986 | 1986 | ||
| 1987 | ;; `filename-non-special' has been fixed in Emacs 26.1, see Bug#29579. | 1987 | ;; TODO: The quoted case does not work. |
| 1988 | (dolist (quoted (if (and tramp--test-expensive-test (tramp--test-emacs26-p)) | 1988 | ;;(dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| 1989 | '(nil t) '(nil))) | 1989 | (let (quoted) |
| 1990 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) | 1990 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) |
| 1991 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) | 1991 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) |
| 1992 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) | 1992 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) |
| @@ -2810,11 +2810,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2810 | ;; Symbolic links could look like a remote file name. | 2810 | ;; Symbolic links could look like a remote file name. |
| 2811 | ;; They must be quoted then. | 2811 | ;; They must be quoted then. |
| 2812 | (delete-file tmp-name2) | 2812 | (delete-file tmp-name2) |
| 2813 | (make-symbolic-link | 2813 | (make-symbolic-link "/penguin:motd:" tmp-name2) |
| 2814 | (funcall | ||
| 2815 | (if quoted 'tramp-compat-file-name-unquote 'identity) | ||
| 2816 | "/penguin:motd:") | ||
| 2817 | tmp-name2) | ||
| 2818 | (should (file-symlink-p tmp-name2)) | 2814 | (should (file-symlink-p tmp-name2)) |
| 2819 | (should | 2815 | (should |
| 2820 | (string-equal | 2816 | (string-equal |
| @@ -2829,7 +2825,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2829 | ;; We must unquote it. | 2825 | ;; We must unquote it. |
| 2830 | (should | 2826 | (should |
| 2831 | (string-equal | 2827 | (string-equal |
| 2832 | (tramp-compat-file-name-unquote (file-truename tmp-name1)) | 2828 | (file-truename tmp-name1) |
| 2833 | (tramp-compat-file-name-unquote (file-truename tmp-name3))))) | 2829 | (tramp-compat-file-name-unquote (file-truename tmp-name3))))) |
| 2834 | 2830 | ||
| 2835 | ;; Cleanup. | 2831 | ;; Cleanup. |
| @@ -2955,9 +2951,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 2955 | (skip-unless (tramp--test-enabled)) | 2951 | (skip-unless (tramp--test-enabled)) |
| 2956 | (skip-unless (file-acl tramp-test-temporary-file-directory)) | 2952 | (skip-unless (file-acl tramp-test-temporary-file-directory)) |
| 2957 | 2953 | ||
| 2958 | ;; `filename-non-special' has been fixed in Emacs 26.1, see Bug#29579. | 2954 | ;; TODO: The quoted case does not work. Copy local file to remote. |
| 2959 | (dolist (quoted (if (and tramp--test-expensive-test (tramp--test-emacs26-p)) | 2955 | ;;(dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| 2960 | '(nil t) '(nil))) | 2956 | (let (quoted) |
| 2961 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) | 2957 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) |
| 2962 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) | 2958 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) |
| 2963 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) | 2959 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) |
| @@ -3033,9 +3029,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 3033 | (not (equal (file-selinux-context tramp-test-temporary-file-directory) | 3029 | (not (equal (file-selinux-context tramp-test-temporary-file-directory) |
| 3034 | '(nil nil nil nil)))) | 3030 | '(nil nil nil nil)))) |
| 3035 | 3031 | ||
| 3036 | ;; `filename-non-special' has been fixed in Emacs 26.1, see Bug#29579. | 3032 | ;; TODO: The quoted case does not work. Copy local file to remote. |
| 3037 | (dolist (quoted (if (and tramp--test-expensive-test (tramp--test-emacs26-p)) | 3033 | ;;(dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| 3038 | '(nil t) '(nil))) | 3034 | (let (quoted) |
| 3039 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) | 3035 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) |
| 3040 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) | 3036 | (tmp-name2 (tramp--test-make-temp-name nil quoted)) |
| 3041 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) | 3037 | (tmp-name3 (tramp--test-make-temp-name 'local quoted))) |
| @@ -4086,9 +4082,9 @@ This requires restrictions of file name syntax." | |||
| 4086 | 4082 | ||
| 4087 | (defun tramp--test-check-files (&rest files) | 4083 | (defun tramp--test-check-files (&rest files) |
| 4088 | "Run a simple but comprehensive test over every file in FILES." | 4084 | "Run a simple but comprehensive test over every file in FILES." |
| 4089 | ;; `filename-non-special' has been fixed in Emacs 26.1, see Bug#29579. | 4085 | ;; TODO: The quoted case does not work. |
| 4090 | (dolist (quoted (if (and tramp--test-expensive-test (tramp--test-emacs26-p)) | 4086 | ;;(dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| 4091 | '(nil t) '(nil))) | 4087 | (let (quoted) |
| 4092 | ;; We must use `file-truename' for the temporary directory, | 4088 | ;; We must use `file-truename' for the temporary directory, |
| 4093 | ;; because it could be located on a symlinked directory. This | 4089 | ;; because it could be located on a symlinked directory. This |
| 4094 | ;; would let the test fail. | 4090 | ;; would let the test fail. |