(file-notify--test-library) "gvfs-monitor-dir.exe")
'((deleted stopped)
(created deleted stopped)))
+ ;; On emba, `deleted' and `stopped' events of the
+ ;; directory are not detected.
+; ((getenv "EMACS_EMBA_CI")
+; '(created changed deleted))
;; There are two `deleted' events, for the file and for
- ;; the directory. Except for cygwin and kqueue. And
- ;; cygwin does not raise a `changed' event.
+ ;; the directory. Except for cygwin, kqueue and remote
+ ;; files. And cygwin does not raise a `changed' event.
((eq system-type 'cygwin)
'(created deleted stopped))
- ((string-equal (file-notify--test-library) "kqueue")
+ ((or (string-equal (file-notify--test-library) "kqueue")
+ (file-remote-p temporary-file-directory))
'(created changed deleted stopped))
- ;; On emba, `deleted' and `stopped' events of the
- ;; directory are not detected.
- ((getenv "EMACS_EMBA_CI")
- '(created changed deleted))
(t '(created changed deleted deleted stopped)))
(write-region
"any text" nil file-notify--test-tmpfile nil 'no-message)
'(created changed created changed deleted stopped))
;; On emba, `deleted' and `stopped' events of the
;; directory are not detected.
- ((getenv "EMACS_EMBA_CI")
- '(created changed created changed deleted deleted))
+; ((getenv "EMACS_EMBA_CI")
+; '(created changed created changed deleted deleted))
+ ;; Remote files return two `deleted' events.
+ ((file-remote-p temporary-file-directory)
+ '(created changed created changed deleted deleted stopped))
(t '(created changed created changed
deleted deleted deleted stopped)))
(write-region
(file-notify--test-library) "gvfs-monitor-dir.exe")
'((deleted stopped)
(created deleted stopped)))
+ ;; On emba, `deleted' and `stopped' events of the
+ ;; directory are not detected.
+; ((getenv "EMACS_EMBA_CI")
+; '(created changed renamed deleted))
;; There are two `deleted' events, for the file and for
- ;; the directory. Except for cygwin and kqueue. And
- ;; cygwin raises `created' and `deleted' events instead
- ;; of a `renamed' event.
+ ;; the directory. Except for cygwin, kqueue and remote
+ ;; files. And cygwin raises `created' and `deleted'
+ ;; events instead of a `renamed' event.
((eq system-type 'cygwin)
'(created created deleted deleted stopped))
- ((string-equal (file-notify--test-library) "kqueue")
+ ((or (string-equal (file-notify--test-library) "kqueue")
+ (file-remote-p temporary-file-directory))
'(created changed renamed deleted stopped))
- ;; On emba, `deleted' and `stopped' events of the
- ;; directory are not detected.
- ((getenv "EMACS_EMBA_CI")
- '(created changed renamed deleted))
(t '(created changed renamed deleted deleted stopped)))
(write-region
"any text" nil file-notify--test-tmpfile nil 'no-message)
'((deleted stopped)
(created deleted stopped)))
;; There are two `deleted' events, for the file and for
- ;; the directory. Except for cygwin and kqueue. And
- ;; cygwin does not raise a `changed' event.
+ ;; the directory. Except for cygwin, kqueue and remote
+ ;; files. And cygwin does not raise a `changed' event.
((eq system-type 'cygwin)
'(created deleted stopped))
- ((string-equal (file-notify--test-library) "kqueue")
+ ((or (string-equal (file-notify--test-library) "kqueue")
+ (file-remote-p temporary-file-directory))
'(created changed deleted stopped))
(t '(created changed deleted deleted stopped)))
(write-region
(file-notify--test-with-events
(cond
;; On cygwin we only get the `changed' event.
- ((eq system-type 'cygwin) '(changed))
+ ((eq system-type 'cygwin)
+ '(changed))
(t '(renamed created changed)))
;; The file is renamed when creating a backup. It shall
;; still be watched.
(cond
;; w32notify does not raise `deleted' and `stopped'
;; events for the watched directory.
- ((string-equal (file-notify--test-library) "w32notify") '())
+ ((string-equal (file-notify--test-library) "w32notify")
+ '())
;; On emba, `deleted' and `stopped' events of the
;; directory are not detected.
- ((getenv "EMACS_EMBA_CI")
- '())
+; ((getenv "EMACS_EMBA_CI")
+; '())
+ ;; Remote files send just one `stopped' event.
+ ((file-remote-p temporary-file-directory)
+ '(stopped))
(t '(deleted stopped))))))
(delete-directory file-notify--test-tmpfile 'recursive))
(unless (getenv "EMACS_EMBA_CI")