Commit 7d7e9a73 authored by Glenn Morris's avatar Glenn Morris
Browse files

* test/automated/file-notify-tests.el (file-notify--test-remote-enabled):

Try to check that the remote system has a notification program.
parent 89cccc2f
2013-08-01 Glenn Morris <>
* automated/file-notify-tests.el (file-notify--test-remote-enabled):
Try to check that the remote system has a notification program.
2013-07-31 Glenn Morris <>
* automated/undo-tests.el (undo-test2, undo-test5): Be quieter.
......@@ -43,6 +43,7 @@
(defvar file-notify--test-event nil)
(require 'tramp)
(require 'tramp-sh)
(setq tramp-verbose 0
tramp-message-show-message nil)
(when noninteractive (defalias 'tramp-read-passwd 'ignore))
......@@ -57,7 +58,18 @@
(and (file-remote-p file-notify-test-remote-temporary-file-directory)
(file-directory-p file-notify-test-remote-temporary-file-directory)
(file-writable-p file-notify-test-remote-temporary-file-directory))))
(file-writable-p file-notify-test-remote-temporary-file-directory)
;; Extracted from tramp-sh-handle-file-notify-add-watch.
;; Even though the "remote" system is just ssh@localhost,
;; the PATH might not be the same as the "local" PATH.
;; Eg this seems to be the case on
;; Without this, tests fail with:
;; "No file notification program found on /ssh:localhost:"
;; Try to fix PATH instead?
file-notify-test-remote-temporary-file-directory nil
(or (tramp-get-remote-gvfs-monitor-dir v)
(tramp-get-remote-inotifywait v))))))
(defmacro file-notify--deftest-remote (test docstring)
"Define ert `TEST-remote' for remote files."
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment