aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael Albinus2015-11-19 09:58:08 +0000
committerMichael Albinus2015-11-19 09:58:08 +0000
commita81fe30a764c117e87e9da13f19b46d0ba6d35a8 (patch)
tree10b7b27537f7414add97b8a8a232fa61a2441f13 /test
parent0d45fc135cb2ac17aa776cc5bd5b339bf20514ae (diff)
downloademacs-a81fe30a764c117e87e9da13f19b46d0ba6d35a8.tar.gz
emacs-a81fe30a764c117e87e9da13f19b46d0ba6d35a8.zip
Handle more complex rename operation in kqueue
* src/kqueue.c (pending_events): New variable. (kqueue_compare_dir_list): Handle more complex rename operation. (globals_of_kqueue): Initialize pending_events. * test/automated/file-notify-tests.el (file-notify-test06-many-events): Adapt expected events in the `rename-file' case. (file-notify-test06-many-events-remote): Declare.
Diffstat (limited to 'test')
-rw-r--r--test/automated/file-notify-tests.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/automated/file-notify-tests.el b/test/automated/file-notify-tests.el
index f0068c547a5..b9cd192dd19 100644
--- a/test/automated/file-notify-tests.el
+++ b/test/automated/file-notify-tests.el
@@ -661,12 +661,7 @@ Don't wait longer than timeout seconds for the events to be delivered."
661 (write-region "" nil file nil 'no-message)) 661 (write-region "" nil file nil 'no-message))
662 (dolist (file y-file-list) 662 (dolist (file y-file-list)
663 (write-region "" nil file nil 'no-message))) 663 (write-region "" nil file nil 'no-message)))
664 (file-notify--test-with-events (cond 664 (file-notify--test-with-events (make-list n 'renamed)
665 ;; XXX Different results?
666 ((featurep 'kqueue)
667 (append (make-list n 'changed)
668 (make-list n 'deleted)))
669 (t (make-list n 'renamed)))
670 (let ((x-file-list x-file-list) 665 (let ((x-file-list x-file-list)
671 (y-file-list y-file-list)) 666 (y-file-list y-file-list))
672 (while (and x-file-list y-file-list) 667 (while (and x-file-list y-file-list)
@@ -676,6 +671,9 @@ Don't wait longer than timeout seconds for the events to be delivered."
676 (delete-file file)))) 671 (delete-file file))))
677 (file-notify--test-cleanup))) 672 (file-notify--test-cleanup)))
678 673
674(file-notify--deftest-remote file-notify-test06-many-events
675 "Check that events are not dropped remote directories.")
676
679(defun file-notify-test-all (&optional interactive) 677(defun file-notify-test-all (&optional interactive)
680 "Run all tests for \\[file-notify]." 678 "Run all tests for \\[file-notify]."
681 (interactive "p") 679 (interactive "p")