diff options
| author | Michael Albinus | 2017-07-31 14:32:24 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-07-31 14:32:24 +0200 |
| commit | 3d58ea1c0ba821a4d6915d6beeaa1617d4ad606f (patch) | |
| tree | 58a4c0c6aaf65934f64b16f9ea85a6e6874fdc4b /test | |
| parent | 55d62d344a0c2ad6c2726fae04366b2a3ed87f6f (diff) | |
| download | emacs-3d58ea1c0ba821a4d6915d6beeaa1617d4ad606f.tar.gz emacs-3d58ea1c0ba821a4d6915d6beeaa1617d4ad606f.zip | |
Small adaptions for directory wildcards
* lisp/dired.el (dired-insert-directory): Remove "--dired"
when there are wildcards, and the directory is remote.
* test/lisp/net/tramp-tests.el (tramp--test-make-temp-name):
Adapt docstring.
(tramp-test17-dired-with-wildcards): Skip for all methods but
those from tamp-sh.p.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 3e28eb62fc2..d76629038f5 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -123,9 +123,10 @@ being the result.") | |||
| 123 | (cdr tramp--test-enabled-checked)) | 123 | (cdr tramp--test-enabled-checked)) |
| 124 | 124 | ||
| 125 | (defun tramp--test-make-temp-name (&optional local quoted) | 125 | (defun tramp--test-make-temp-name (&optional local quoted) |
| 126 | "Create a temporary file name for test. | 126 | "Return a temporary file name for test. |
| 127 | If LOCAL is non-nil, a local file is created. | 127 | If LOCAL is non-nil, a local file name is returned. |
| 128 | If QUOTED is non-nil, the local part of the file is quoted." | 128 | If QUOTED is non-nil, the local part of the file name is quoted. |
| 129 | The temporary file is not created." | ||
| 129 | (funcall | 130 | (funcall |
| 130 | (if quoted 'tramp-compat-file-name-quote 'identity) | 131 | (if quoted 'tramp-compat-file-name-quote 'identity) |
| 131 | (expand-file-name | 132 | (expand-file-name |
| @@ -2204,6 +2205,8 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 2204 | (ert-deftest tramp-test17-dired-with-wildcards () | 2205 | (ert-deftest tramp-test17-dired-with-wildcards () |
| 2205 | "Check `dired' with wildcards." | 2206 | "Check `dired' with wildcards." |
| 2206 | (skip-unless (tramp--test-enabled)) | 2207 | (skip-unless (tramp--test-enabled)) |
| 2208 | (skip-unless (tramp--test-sh-p)) | ||
| 2209 | ;; Since Emacs 26.1. | ||
| 2207 | (skip-unless (fboundp 'insert-directory-wildcard-in-dir-p)) | 2210 | (skip-unless (fboundp 'insert-directory-wildcard-in-dir-p)) |
| 2208 | 2211 | ||
| 2209 | (dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) | 2212 | (dolist (quoted (if tramp--test-expensive-test '(nil t) '(nil))) |
| @@ -3107,6 +3110,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 3107 | :tags '(:expensive-test) | 3110 | :tags '(:expensive-test) |
| 3108 | (skip-unless (tramp--test-enabled)) | 3111 | (skip-unless (tramp--test-enabled)) |
| 3109 | (skip-unless (tramp--test-sh-p)) | 3112 | (skip-unless (tramp--test-sh-p)) |
| 3113 | ;; Since Emacs 26.1. | ||
| 3110 | (skip-unless (and (fboundp 'connection-local-set-profile-variables) | 3114 | (skip-unless (and (fboundp 'connection-local-set-profile-variables) |
| 3111 | (fboundp 'connection-local-set-profiles))) | 3115 | (fboundp 'connection-local-set-profiles))) |
| 3112 | 3116 | ||
| @@ -3316,6 +3320,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 3316 | (ert-deftest tramp-test33-make-nearby-temp-file () | 3320 | (ert-deftest tramp-test33-make-nearby-temp-file () |
| 3317 | "Check `make-nearby-temp-file' and `temporary-file-directory'." | 3321 | "Check `make-nearby-temp-file' and `temporary-file-directory'." |
| 3318 | (skip-unless (tramp--test-enabled)) | 3322 | (skip-unless (tramp--test-enabled)) |
| 3323 | ;; Since Emacs 26.1. | ||
| 3319 | (skip-unless | 3324 | (skip-unless |
| 3320 | (and (fboundp 'make-nearby-temp-file) (fboundp 'temporary-file-directory))) | 3325 | (and (fboundp 'make-nearby-temp-file) (fboundp 'temporary-file-directory))) |
| 3321 | 3326 | ||
| @@ -3902,7 +3907,7 @@ process sentinels. They shall not disturb each other." | |||
| 3902 | (count (process-get proc 'bar))) | 3907 | (count (process-get proc 'bar))) |
| 3903 | (tramp--test-message | 3908 | (tramp--test-message |
| 3904 | "Start action %d %s %s" count buf (current-time-string)) | 3909 | "Start action %d %s %s" count buf (current-time-string)) |
| 3905 | ;; Regular operation. | 3910 | ;; Regular operation prior process action. |
| 3906 | (if (= count 0) | 3911 | (if (= count 0) |
| 3907 | (should-not (file-attributes file)) | 3912 | (should-not (file-attributes file)) |
| 3908 | (should (file-attributes file))) | 3913 | (should (file-attributes file))) |
| @@ -3911,7 +3916,7 @@ process sentinels. They shall not disturb each other." | |||
| 3911 | (accept-process-output proc 0.1 nil 0) | 3916 | (accept-process-output proc 0.1 nil 0) |
| 3912 | ;; Give the watchdog a chance. | 3917 | ;; Give the watchdog a chance. |
| 3913 | (read-event nil nil 0.01) | 3918 | (read-event nil nil 0.01) |
| 3914 | ;; Regular operation. | 3919 | ;; Regular operation post process action. |
| 3915 | (tramp--test-instrument-test-case 10 | 3920 | (tramp--test-instrument-test-case 10 |
| 3916 | (if (= count 2) | 3921 | (if (= count 2) |
| 3917 | (should-not (file-attributes file)) | 3922 | (should-not (file-attributes file)) |