aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp')
-rw-r--r--test/lisp/filenotify-tests.el12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 629d85be1ef..5fc4ff8bf42 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -66,7 +66,7 @@
66 "Timeout to wait for arriving events, in seconds." 66 "Timeout to wait for arriving events, in seconds."
67 (cond 67 (cond
68 ((file-remote-p temporary-file-directory) 6) 68 ((file-remote-p temporary-file-directory) 6)
69 ((string-equal (file-notify--test-library) "w32notify") 20) 69 ((string-equal (file-notify--test-library) "w32notify") 10)
70 ((eq system-type 'cygwin) 10) 70 ((eq system-type 'cygwin) 10)
71 (t 3))) 71 (t 3)))
72 72
@@ -797,10 +797,7 @@ longer than timeout seconds for the events to be delivered."
797 file-notify--test-tmpfile 797 file-notify--test-tmpfile
798 '(change) 'file-notify--test-event-handler))) 798 '(change) 'file-notify--test-event-handler)))
799 (unwind-protect 799 (unwind-protect
800 ;; In case of w32notify, the upper limit of events to handle 800 (let ((n 1000)
801 ;; seems to be 260. Reason unknown.
802 (let ((n (if (string-equal (file-notify--test-library) "w32notify")
803 250 1000))
804 source-file-list target-file-list 801 source-file-list target-file-list
805 (default-directory file-notify--test-tmpfile)) 802 (default-directory file-notify--test-tmpfile))
806 (dotimes (i n) 803 (dotimes (i n)
@@ -832,10 +829,11 @@ longer than timeout seconds for the events to be delivered."
832 (let ((source-file-list source-file-list) 829 (let ((source-file-list source-file-list)
833 (target-file-list target-file-list)) 830 (target-file-list target-file-list))
834 (while (and source-file-list target-file-list) 831 (while (and source-file-list target-file-list)
835 (rename-file (pop source-file-list) (pop target-file-list) t)))) 832 (rename-file (pop source-file-list) (pop target-file-list) t)
833 (read-event nil nil 0.02))))
836 (file-notify--test-with-events (make-list n 'deleted) 834 (file-notify--test-with-events (make-list n 'deleted)
837 (dolist (file target-file-list) 835 (dolist (file target-file-list)
838 (delete-file file)))) 836 (prog1 (delete-file file) (read-event nil nil 0.02)))))
839 (file-notify--test-cleanup))) 837 (file-notify--test-cleanup)))
840 838
841(file-notify--deftest-remote file-notify-test06-many-events 839(file-notify--deftest-remote file-notify-test06-many-events