diff options
| author | Ken Brown | 2016-05-27 14:55:34 -0400 |
|---|---|---|
| committer | Ken Brown | 2016-05-27 14:55:34 -0400 |
| commit | 61926ccd673f5d1f9bd505f414d370357c686f4e (patch) | |
| tree | cf333e7ff1e628ead658c256ebbeb23b5dcb25ed | |
| parent | b342815c0a9af8d94d4290d17882de73f6fd9373 (diff) | |
| download | emacs-61926ccd673f5d1f9bd505f414d370357c686f4e.tar.gz emacs-61926ccd673f5d1f9bd505f414d370357c686f4e.zip | |
Adjust filenotify-tests on Cygwin
* test/lisp/filenotify-tests.el (file-notify--test-timeout):
Remove special case for Cygwin.
(file-notify-test07-backup): Update expected results on Cygwin.
| -rw-r--r-- | test/lisp/filenotify-tests.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el index 9c19e63e62a..402b77438c7 100644 --- a/test/lisp/filenotify-tests.el +++ b/test/lisp/filenotify-tests.el | |||
| @@ -73,7 +73,6 @@ It is different for local and remote file notification libraries.") | |||
| 73 | (cond | 73 | (cond |
| 74 | ((file-remote-p temporary-file-directory) 6) | 74 | ((file-remote-p temporary-file-directory) 6) |
| 75 | ((string-equal (file-notify--test-library) "w32notify") 4) | 75 | ((string-equal (file-notify--test-library) "w32notify") 4) |
| 76 | ((eq system-type 'cygwin) 10) | ||
| 77 | (t 3))) | 76 | (t 3))) |
| 78 | 77 | ||
| 79 | (defun file-notify--test-cleanup () | 78 | (defun file-notify--test-cleanup () |
| @@ -861,6 +860,9 @@ longer than timeout seconds for the events to be delivered." | |||
| 861 | (should (file-notify-valid-p file-notify--test-desc)) | 860 | (should (file-notify-valid-p file-notify--test-desc)) |
| 862 | (file-notify--test-with-events | 861 | (file-notify--test-with-events |
| 863 | (cond | 862 | (cond |
| 863 | ;; On Cygwin there is one `changed' event in both the | ||
| 864 | ;; local and remote cases. | ||
| 865 | ((eq system-type 'cygwin) '(changed)) | ||
| 864 | ;; For w32notify and in the remote case, there are two | 866 | ;; For w32notify and in the remote case, there are two |
| 865 | ;; `changed' events. | 867 | ;; `changed' events. |
| 866 | ((or (string-equal (file-notify--test-library) "w32notify") | 868 | ((or (string-equal (file-notify--test-library) "w32notify") |
| @@ -902,7 +904,11 @@ longer than timeout seconds for the events to be delivered." | |||
| 902 | file-notify--test-tmpfile | 904 | file-notify--test-tmpfile |
| 903 | '(change) #'file-notify--test-event-handler))) | 905 | '(change) #'file-notify--test-event-handler))) |
| 904 | (should (file-notify-valid-p file-notify--test-desc)) | 906 | (should (file-notify-valid-p file-notify--test-desc)) |
| 905 | (file-notify--test-with-events '(renamed created changed) | 907 | (file-notify--test-with-events |
| 908 | (cond | ||
| 909 | ;; On Cygwin we only get the `changed' event. | ||
| 910 | ((eq system-type 'cygwin) '(changed)) | ||
| 911 | (t '(renamed created changed))) | ||
| 906 | ;; The file is renamed when creating a backup. It shall | 912 | ;; The file is renamed when creating a backup. It shall |
| 907 | ;; still be watched. | 913 | ;; still be watched. |
| 908 | (with-temp-buffer | 914 | (with-temp-buffer |