diff options
| author | Paul Eggert | 2016-02-09 14:23:10 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-02-09 14:23:10 -0800 |
| commit | b3fc7a3e763fb260cd932dc6aedbe7b4c810a73c (patch) | |
| tree | 72495a45c9e58f16f6b09448f6956507da6ccf89 /test/lisp | |
| parent | c71e7cc113ed0d5f01aaa2e441a3e3c9fbeb9fa5 (diff) | |
| parent | 9ffe7ddd5e1ba93f327cfe985e9476571d7a2873 (diff) | |
| download | emacs-b3fc7a3e763fb260cd932dc6aedbe7b4c810a73c.tar.gz emacs-b3fc7a3e763fb260cd932dc6aedbe7b4c810a73c.zip | |
Merge from origin/emacs-25
9ffe7dd * lisp/isearch.el (isearch-define-mode-toggle): Improve logic
16140f7 * lisp/menu-bar.el (menu-bar-options-menu): New search submenu
3db6adb * lisp/isearch.el (search-default-mode)
4ea1ea7 * lisp/isearch.el: Rename search-default-regexp-mode to search-default-mode
c77ffc8 Use monitor's resolution for positioning tooltips
49e5749 Fix file-notify-test on MS-Windows
be1d874 Fix issues found by auditing w32notify code
87ae218 Extend etags Ruby support for accessors
aa35257 Update publicsuffix.txt.
6816bff Ensure that Gnus dribble handling allows removing entries
691feae Be consistent when using encoded strings in nnimap data
3ed423b Display the decoded Gnus group name
5428b5b Use completion-ignore-case instead of defining command
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/filenotify-tests.el | 12 |
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 |