]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a filenotify test failure on Cygwin
authorKen Brown <kbrown@cornell.edu>
Fri, 3 Aug 2018 14:37:04 +0000 (10:37 -0400)
committerKen Brown <kbrown@cornell.edu>
Fri, 3 Aug 2018 19:33:33 +0000 (15:33 -0400)
* test/lisp/filenotify-tests.el
(file-notify-test04-autorevert): Increase a sleep-for time
from 2 to 3 on Cygwin.  This avoids sporadic failures of the
test.  (Bug#32363)

test/lisp/filenotify-tests.el

index 56403f430924c937b525287245fa38b6272b4397..612ea8cd7f41228f86277e9b1653381ea1e36f7f 100644 (file)
@@ -891,9 +891,9 @@ delivered."
 
            ;; Modify file.  We wait for two seconds, in order to
            ;; have another timestamp.  One second seems to be too
-            ;; short.
+            ;; short.  And Cygwin sporadically requires more than two.
             (ert-with-message-capture captured-messages
-              (sleep-for 2)
+              (sleep-for (if (eq system-type 'cygwin) 3 2))
               (write-region
                "foo bla" nil file-notify--test-tmpfile nil 'no-message)