diff options
| author | Michael Albinus | 2016-07-05 21:16:25 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-07-05 21:16:25 +0200 |
| commit | 1ba6f2c7bbacfda2bb014d30cfb3999146943de8 (patch) | |
| tree | ac5631c3e163b07bf0e66ad94848b7765d190188 /test/lisp | |
| parent | 36e69bd82a0294b1f51d99a5eaf8e2c7661f7a16 (diff) | |
| download | emacs-1ba6f2c7bbacfda2bb014d30cfb3999146943de8.tar.gz emacs-1ba6f2c7bbacfda2bb014d30cfb3999146943de8.zip | |
Make all Tramp tests pass for "gdrive" method
* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-directory)
* lisp/net/tramp-compat.el (tramp-compat-copy-directory)
(tramp-compat-delete-directory):
* lisp/net/tramp-smb.el (tramp-smb-handle-delete-directory):
Use `directory-files-no-dot-files-regexp'.
* lisp/net/tramp-gvfs.el (tramp-gvfs-handler-mounted-unmounted)
(tramp-gvfs-send-command): Call `tramp-flush-file-property' in
case of problems.
* test/lisp/net/tramp-tests.el (tramp--instrument-test-case):
Adapt docstring.
(tramp-test14-delete-directory): Make further tests.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index fe927bb25fd..f1f722b272b 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -115,8 +115,8 @@ being the result.") | |||
| 115 | (defmacro tramp--instrument-test-case (verbose &rest body) | 115 | (defmacro tramp--instrument-test-case (verbose &rest body) |
| 116 | "Run BODY with `tramp-verbose' equal VERBOSE. | 116 | "Run BODY with `tramp-verbose' equal VERBOSE. |
| 117 | Print the the content of the Tramp debug buffer, if BODY does not | 117 | Print the the content of the Tramp debug buffer, if BODY does not |
| 118 | eval properly in `should', `should-not' or `should-error'. BODY | 118 | eval properly in `should' or `should-not'. `should-error' is not |
| 119 | shall not contain a timeout." | 119 | handled properly. BODY shall not contain a timeout." |
| 120 | (declare (indent 1) (debug (natnump body))) | 120 | (declare (indent 1) (debug (natnump body))) |
| 121 | `(let ((tramp-verbose ,verbose) | 121 | `(let ((tramp-verbose ,verbose) |
| 122 | (tramp-debug-on-error t) | 122 | (tramp-debug-on-error t) |
| @@ -951,7 +951,9 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 951 | (should-not (file-directory-p tmp-name)) | 951 | (should-not (file-directory-p tmp-name)) |
| 952 | ;; Delete non-empty directory. | 952 | ;; Delete non-empty directory. |
| 953 | (make-directory tmp-name) | 953 | (make-directory tmp-name) |
| 954 | (should (file-directory-p tmp-name)) | ||
| 954 | (write-region "foo" nil (expand-file-name "bla" tmp-name)) | 955 | (write-region "foo" nil (expand-file-name "bla" tmp-name)) |
| 956 | (should (file-exists-p (expand-file-name "bla" tmp-name))) | ||
| 955 | (should-error (delete-directory tmp-name)) | 957 | (should-error (delete-directory tmp-name)) |
| 956 | (delete-directory tmp-name 'recursive) | 958 | (delete-directory tmp-name 'recursive) |
| 957 | (should-not (file-directory-p tmp-name)))) | 959 | (should-not (file-directory-p tmp-name)))) |