unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32363: 27.0.50; Sporadic file-notify test error on Cygwin
@ 2018-08-03 14:47 Ken Brown
  2018-08-03 16:52 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Brown @ 2018-08-03 14:47 UTC (permalink / raw)
  To: 32363

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

file-notify-test04-autorevert fails sporadically on Cygwin, due to
timing issues.  The attached patch seems to fix it.  I've run it in a
loop of 100 trials several times, on two different computers, with no
failures.

Ken

[-- Attachment #2: 0001-Fix-a-filenotify-test-failure-on-Cygwin.patch --]
[-- Type: text/plain, Size: 1182 bytes --]

From 12eaf6fa377b7d19359a7af4ae486e2c4a61c965 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Fri, 3 Aug 2018 10:37:04 -0400
Subject: [PATCH] Fix a filenotify test failure on Cygwin

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

diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 56403f4309..612ea8cd7f 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -891,9 +891,9 @@ file-notify--test-with-events
 
 	    ;; 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)
 
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#32363: 27.0.50; Sporadic file-notify test error on Cygwin
  2018-08-03 14:47 bug#32363: 27.0.50; Sporadic file-notify test error on Cygwin Ken Brown
@ 2018-08-03 16:52 ` Michael Albinus
  2018-08-03 19:36   ` Ken Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2018-08-03 16:52 UTC (permalink / raw)
  To: Ken Brown; +Cc: 32363

Ken Brown <kbrown@cornell.edu> writes:

Hi Ken,

> file-notify-test04-autorevert fails sporadically on Cygwin, due to
> timing issues.  The attached patch seems to fix it.  I've run it in a
> loop of 100 trials several times, on two different computers, with no
> failures.

No objection from my side; if there's no other comment you could push
the fix.

> Ken

Best regards, Michael.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32363: 27.0.50; Sporadic file-notify test error on Cygwin
  2018-08-03 16:52 ` Michael Albinus
@ 2018-08-03 19:36   ` Ken Brown
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Brown @ 2018-08-03 19:36 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 32363-done

On 8/3/2018 12:52 PM, Michael Albinus wrote:
> No objection from my side; if there's no other comment you could push
> the fix.

Pushed as commit 5dc3d0a.  Closing.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-03 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-03 14:47 bug#32363: 27.0.50; Sporadic file-notify test error on Cygwin Ken Brown
2018-08-03 16:52 ` Michael Albinus
2018-08-03 19:36   ` Ken Brown

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).