[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/kqueue 6b490c0 14/18: Improve loops in file-notify
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] scratch/kqueue 6b490c0 14/18: Improve loops in file-notify-test06-many-events |
Date: |
Wed, 25 Nov 2015 14:11:20 +0000 |
branch: scratch/kqueue
commit 6b490c070931899a779c3717a2f19625d9e16b19
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>
Improve loops in file-notify-test06-many-events
* test/automated/file-notify-tests.el (file-notify-test06-many-events):
Use `read-event' pauses for the `write-file' loops; otherwise
events are lost in inotify and gfilenotify cases.
---
test/automated/file-notify-tests.el | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/test/automated/file-notify-tests.el
b/test/automated/file-notify-tests.el
index b9cd192..81fb42e 100644
--- a/test/automated/file-notify-tests.el
+++ b/test/automated/file-notify-tests.el
@@ -657,10 +657,12 @@ Don't wait longer than timeout seconds for the events to
be delivered."
(push (expand-file-name (format "x%d" i)) x-file-list)
(push (expand-file-name (format "y%d" i)) y-file-list))
(file-notify--test-with-events (make-list (+ n n) 'created)
- (dolist (file x-file-list)
- (write-region "" nil file nil 'no-message))
- (dolist (file y-file-list)
- (write-region "" nil file nil 'no-message)))
+ (let ((x-file-list x-file-list)
+ (y-file-list y-file-list))
+ (while (and x-file-list y-file-list)
+ (write-region "" nil (pop x-file-list) nil 'no-message)
+ (read-event nil nil 0.1)
+ (write-region "" nil (pop y-file-list) nil 'no-message))))
(file-notify--test-with-events (make-list n 'renamed)
(let ((x-file-list x-file-list)
(y-file-list y-file-list))
@@ -672,7 +674,7 @@ Don't wait longer than timeout seconds for the events to be
delivered."
(file-notify--test-cleanup)))
(file-notify--deftest-remote file-notify-test06-many-events
- "Check that events are not dropped remote directories.")
+ "Check that events are not dropped for remote directories.")
(defun file-notify-test-all (&optional interactive)
"Run all tests for \\[file-notify]."
- [Emacs-diffs] scratch/kqueue e0a68f2 03/18: Continue kqueue implementation, (continued)
- [Emacs-diffs] scratch/kqueue e0a68f2 03/18: Continue kqueue implementation, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 90d6c69 07/18: * lisp/filenotify.el (file-notify-add-watch): Fix thinko., Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 99aa855 09/18: Doc changes for kqueue, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 7543d1c 02/18: Work on kqueue, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 5044bdf 12/18: New test with a larger number of events., Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 13f3508 10/18: Code cleanup of kqueue.c, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue e95b309 06/18: More work on kqueue, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue c8e266f 13/18: Handle more complex rename operation in kqueue, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 65ba5a9 11/18: Further fixes for kqueue., Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 8deebe1 08/18: Finish implementation in kqueue.c, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 6b490c0 14/18: Improve loops in file-notify-test06-many-events,
Michael Albinus <=
- [Emacs-diffs] scratch/kqueue 5154781 15/18: Continie with pending events, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue e604e6a 18/18: Merge branch 'scratch/kqueue' of git.sv.gnu.org:/srv/git/emacs into scratch/kqueue, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 0247489 16/18: Rework file notifications, kqueue has problems with directory monitors, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue 41d9bd0 05/18: Implement directory events, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue e3354e2 01/18: Add kqueue support, Michael Albinus, 2015/11/25
- [Emacs-diffs] scratch/kqueue bec57a4 17/18: Some final fixes in file notification before merging with master, Michael Albinus, 2015/11/25