aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/filenotify-tests.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 54e7ebfc0e5..78a68f21bd1 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -69,6 +69,7 @@
69(defun file-notify--test-read-event () 69(defun file-notify--test-read-event ()
70 "Read one event. 70 "Read one event.
71There are different timeouts for local and remote file notification libraries." 71There are different timeouts for local and remote file notification libraries."
72 (sit-for 0.001 'nodisp)
72 (read-event 73 (read-event
73 nil nil 74 nil nil
74 (cond 75 (cond
@@ -426,6 +427,7 @@ This returns only for the local case and gfilenotify; otherwise it is nil.
426 ;; Remove first watch. 427 ;; Remove first watch.
427 (file-notify-rm-watch file-notify--test-desc) 428 (file-notify-rm-watch file-notify--test-desc)
428 ;; Only the second callback shall run. 429 ;; Only the second callback shall run.
430 (file-notify--test-read-event)
429 (delete-file file-notify--test-tmpfile) 431 (delete-file file-notify--test-tmpfile)
430 (file-notify--wait-for-events 432 (file-notify--wait-for-events
431 (file-notify--test-timeout) results) 433 (file-notify--test-timeout) results)
@@ -953,7 +955,7 @@ delivered."
953 ;; After deleting the parent directory, the descriptor must 955 ;; After deleting the parent directory, the descriptor must
954 ;; not be valid anymore. 956 ;; not be valid anymore.
955 (should-not (file-notify-valid-p file-notify--test-desc)) 957 (should-not (file-notify-valid-p file-notify--test-desc))
956 ;; w32notify doesn't generate 'stopped' events when the parent 958 ;; w32notify doesn't generate `stopped' events when the parent
957 ;; directory is deleted, which doesn't provide a chance for 959 ;; directory is deleted, which doesn't provide a chance for
958 ;; filenotify.el to remove the descriptor from the internal 960 ;; filenotify.el to remove the descriptor from the internal
959 ;; hash table it maintains. So we must remove the descriptor 961 ;; hash table it maintains. So we must remove the descriptor