emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 61926cc: Adjust filenotify-tests on Cygwin


From: Ken Brown
Subject: [Emacs-diffs] master 61926cc: Adjust filenotify-tests on Cygwin
Date: Fri, 27 May 2016 18:56:53 +0000 (UTC)

branch: master
commit 61926ccd673f5d1f9bd505f414d370357c686f4e
Author: Ken Brown <address@hidden>
Commit: Ken Brown <address@hidden>

    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.
---
 test/lisp/filenotify-tests.el |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 9c19e63..402b774 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.")
   (cond
    ((file-remote-p temporary-file-directory) 6)
    ((string-equal (file-notify--test-library) "w32notify") 4)
-   ((eq system-type 'cygwin) 10)
    (t 3)))
 
 (defun file-notify--test-cleanup ()
@@ -861,6 +860,9 @@ longer than timeout seconds for the events to be delivered."
         (should (file-notify-valid-p file-notify--test-desc))
         (file-notify--test-with-events
            (cond
+             ;; On Cygwin there is one `changed' event in both the
+             ;; local and remote cases.
+             ((eq system-type 'cygwin) '(changed))
              ;; For w32notify and in the remote case, there are two
              ;; `changed' events.
              ((or (string-equal (file-notify--test-library) "w32notify")
@@ -902,7 +904,11 @@ longer than timeout seconds for the events to be 
delivered."
                  file-notify--test-tmpfile
                  '(change) #'file-notify--test-event-handler)))
          (should (file-notify-valid-p file-notify--test-desc))
-         (file-notify--test-with-events '(renamed created changed)
+         (file-notify--test-with-events
+            (cond
+             ;; On Cygwin we only get the `changed' event.
+             ((eq system-type 'cygwin) '(changed))
+             (t '(renamed created changed)))
            ;; The file is renamed when creating a backup.  It shall
            ;; still be watched.
            (with-temp-buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]