*** /tmp/ediffGmYi43 2021-03-20 09:57:10.563305971 +0100 --- /home/albinus/src/emacs-27/test/lisp/filenotify-tests.el 2021-03-20 09:55:13.121660549 +0100 *************** *** 109,115 **** ;; at least on Cygwin. ((and (string-equal (file-notify--test-library) "gfilenotify") (memq (file-notify--test-monitor) ! '(GFamFileMonitor GPollFileMonitor))) 7) ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") 1) ((file-remote-p temporary-file-directory) 0.1) --- 109,115 ---- ;; at least on Cygwin. ((and (string-equal (file-notify--test-library) "gfilenotify") (memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor GPollFileMonitor))) 7) ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") 1) ((file-remote-p temporary-file-directory) 0.1) *************** *** 1021,1026 **** --- 1021,1029 ---- ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") '((deleted stopped) (changed deleted stopped))) + ;; GFamDirectoryMonitor does not report the `changed' event. + ((equal (file-notify--test-monitor) 'GFamDirectoryMonitor) + '(deleted stopped)) ;; There could be one or two `changed' events. (t '((changed deleted stopped) (changed changed deleted stopped)))) *************** *** 1286,1291 **** --- 1289,1297 ---- ;; On cygwin we only get the `changed' event. ((eq system-type 'cygwin) '(changed)) + ;; GFamDirectoryMonitor reports only the `changed' event. + ((equal (file-notify--test-monitor) 'GFamDirectoryMonitor) + '(changed)) (t '(renamed created changed))) ;; The file is renamed when creating a backup. It shall ;; still be watched.