]> git.eshelyaron.com Git - emacs.git/commit
Add tests for remote files in auto-revert-tests
authorMichael Albinus <michael.albinus@gmx.de>
Fri, 3 May 2019 15:18:13 +0000 (17:18 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Fri, 3 May 2019 15:18:13 +0000 (17:18 +0200)
commitd0fe28cb1d33daa059990d62556a8de20a385387
treeae2dab44a36a6497d034d4a4dc4e08411bcbd9c9
parent24a1d5a0b5c0debd8256d71242bfa6f8448bf5af
Add tests for remote files in auto-revert-tests

* lisp/autorevert.el (auto-revert-debug): New defvar.
(auto-revert-notify-handler): Write traces.

* lisp/filenotify.el (file-notify-debug): New defvar.
(file-notify-handle-event, file-notify-callback): Write traces.

* lisp/net/tramp-sh.el (tramp-sh-handle-vc-registered):
Handle nil `vc-handled-backends'.

* test/lisp/autorevert-tests.el
(auto-revert-test-remote-temporary-file-directory): New defconst.
Handle also $REMOTE_FILE_NOTIFY_LIBRARY.
(auto-revert--test-enabled-remote-checked): New defvar.
(auto-revert--test-enabled-remote): New defun.
(auto-revert--wait-for-revert): Rewrite without timeout.
(auto-revert--deftest-remote): New defmacro.
(auto-revert-test01-auto-revert-several-files):
(auto-revert-test02-auto-revert-deleted-file): Adapt for remote files.
(auto-revert-test02-auto-revert-deleted-file):
Use `auto-revert-debug' for debug messages.
(auto-revert-test00-auto-revert-mode-remote)
(auto-revert-test01-auto-revert-several-files-mode-remote)
(auto-revert-test02-auto-revert-deleted-file-mode-remote)
(auto-revert-test03-auto-revert-tail-mode-mode-remote)
(auto-revert-test04-auto-revert-mode-dired-mode-remote): New tests.

* test/lisp/filenotify-tests.el (file-notify--test-event-handler):
Use `file-notify-debug' for debug messages.
lisp/autorevert.el
lisp/filenotify.el
lisp/net/tramp-sh.el
test/lisp/autorevert-tests.el
test/lisp/filenotify-tests.el