diff options
| author | Michael Albinus | 2019-08-04 12:47:43 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-08-04 12:47:43 +0200 |
| commit | 2abcca23910d1fa5fe0bcac3ebc5b62df8e0a741 (patch) | |
| tree | e52558def53505247a8c4402cbb697bb9b63ef50 /test | |
| parent | 5ec3f70527e330abf4c0c3519fa4914c5f094358 (diff) | |
| download | emacs-2abcca23910d1fa5fe0bcac3ebc5b62df8e0a741.tar.gz emacs-2abcca23910d1fa5fe0bcac3ebc5b62df8e0a741.zip | |
Implement set-file-* functions for tramp-gvfs.el
* lisp/net/tramp-gvfs.el (tramp-gvfs-gio-mapping):
Add "gvfs-set-attribute".
(tramp-gvfs-file-name-handler-alist):
Add `tramp-gvfs-handle-set-file-modes',
`tramp-gvfs-handle-set-file-times' and
`tramp-gvfs-handle-set-file-uid-gid'.
(tramp-gvfs-handle-set-file-modes)
(tramp-gvfs-handle-set-file-times)
(tramp-sh-handle-set-file-uid-gid): New defuns.
* lisp/net/tramp.el (tramp-handle-write-region): Set file modes.
* test/lisp/net/tramp-tests.el (tramp-test20-file-modes)
(tramp-test22-file-times): Do not skip for tramp-gvfs.el.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 1404ef39d55..f60dea36bf5 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -3143,7 +3143,13 @@ They might differ only in access time." | |||
| 3143 | "Check `file-modes'. | 3143 | "Check `file-modes'. |
| 3144 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." | 3144 | This tests also `file-executable-p', `file-writable-p' and `set-file-modes'." |
| 3145 | (skip-unless (tramp--test-enabled)) | 3145 | (skip-unless (tramp--test-enabled)) |
| 3146 | (skip-unless (or (tramp--test-sh-p) (tramp--test-sudoedit-p))) | 3146 | (skip-unless |
| 3147 | (or (tramp--test-sh-p) (tramp--test-sudoedit-p) | ||
| 3148 | ;; Not all tramp-gvfs.el methods support changing the file mode. | ||
| 3149 | (and | ||
| 3150 | (tramp--test-gvfs-p) | ||
| 3151 | (string-match-p | ||
| 3152 | "ftp" (file-remote-p tramp-test-temporary-file-directory 'method))))) | ||
| 3147 | 3153 | ||
| 3148 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) | 3154 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) |
| 3149 | (let ((tmp-name (tramp--test-make-temp-name nil quoted))) | 3155 | (let ((tmp-name (tramp--test-make-temp-name nil quoted))) |
| @@ -3443,7 +3449,8 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 3443 | "Check `set-file-times' and `file-newer-than-file-p'." | 3449 | "Check `set-file-times' and `file-newer-than-file-p'." |
| 3444 | (skip-unless (tramp--test-enabled)) | 3450 | (skip-unless (tramp--test-enabled)) |
| 3445 | (skip-unless | 3451 | (skip-unless |
| 3446 | (or (tramp--test-adb-p) (tramp--test-sh-p) (tramp--test-sudoedit-p))) | 3452 | (or (tramp--test-adb-p) (tramp--test-gvfs-p) |
| 3453 | (tramp--test-sh-p) (tramp--test-sudoedit-p))) | ||
| 3447 | 3454 | ||
| 3448 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) | 3455 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) |
| 3449 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) | 3456 | (let ((tmp-name1 (tramp--test-make-temp-name nil quoted)) |