From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#21804: 25.0.50; file-notify-tests failure on Cygwin Date: Thu, 29 Dec 2016 20:06:59 +0100 Message-ID: <87zijek10s.fsf@gmx.de> References: <563634F7.2070606@cornell.edu> <8737wpipy8.fsf@gmx.de> <87a8qv6lu2.fsf@gmx.de> <5639818A.5090307@cornell.edu> <87ziyugoqr.fsf@gmx.de> <563A3890.6030707@cornell.edu> <87si4lhaeq.fsf@gmx.de> <563ACB3F.5080709@cornell.edu> <87y4ecnrpp.fsf@gmx.de> <87r34tmv9m.fsf@gmx.de> <87h95pp6dd.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483038499 1949 195.159.176.226 (29 Dec 2016 19:08:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Dec 2016 19:08:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 21804@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 29 20:08:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMg3a-000761-5t for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2016 20:08:06 +0100 Original-Received: from localhost ([::1]:36976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMg3f-0007jP-3p for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Dec 2016 14:08:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cMg3Y-0007jH-Nj for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2016 14:08:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cMg3W-0003PQ-3V for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2016 14:08:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43997) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cMg3V-0003PI-WB for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2016 14:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cMg3V-0003i0-Ja for bug-gnu-emacs@gnu.org; Thu, 29 Dec 2016 14:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Dec 2016 19:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21804 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21804-submit@debbugs.gnu.org id=B21804.148303843614195 (code B ref 21804); Thu, 29 Dec 2016 19:08:01 +0000 Original-Received: (at 21804) by debbugs.gnu.org; 29 Dec 2016 19:07:16 +0000 Original-Received: from localhost ([127.0.0.1]:59396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMg2m-0003gt-2S for submit@debbugs.gnu.org; Thu, 29 Dec 2016 14:07:16 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:57899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cMg2j-0003gd-Jt for 21804@debbugs.gnu.org; Thu, 29 Dec 2016 14:07:14 -0500 Original-Received: from detlef.gmx.de ([93.197.207.37]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MBWo2-1cDM7G2f2M-00AVH3; Thu, 29 Dec 2016 20:07:00 +0100 In-Reply-To: (Ken Brown's message of "Wed, 28 Dec 2016 18:16:20 -0500") X-Provags-ID: V03:K0:jupWQKm8GtSr/2+Cl9lX7XnVs9LhmZFPRiM8x9sQbEKxDdPjfDj OcgBU95KMVYzkhALIwK/OOTNIVcTK5d1J8iDCK+mGeMaiHcwmepCHeRzqHfv2/A7PnegbPk Ev+L2k0q9V7YcZaJo/AQny3m9qw+GmGWYJmbP747D9t3+0kUAhbK1TElsrbqSBOmlD3Fb8e e2QMWXiD0lqBw1BGGnu2Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:3DAHGsCr2lQ=:RqFdyqHFqVr9y87ssRiEjs NE5BUqZwjMlgRrCiXZfl1n+EZglyrGrzpYUe0A0WiGci0WL3xC+M/mi3f0lrvwpuortg9MToH ztCjNEovJfNPWiciC4psG4M2svEfXvH7v0vHFhPw9FDBk+XCWeUbpVQHxeLgzHu38hjyJH1uD +i0MdDeuwhZcB7Pf78e5OnZQkXvozNPoISkM75lvQ3nDZFWTROboOFczEhxXYF3wEl9uvis4w qVcct20dXG6iBzATSlq7BK+X74Oqd9xC8o7q2aVMdW3+I7M2PjgfP4fLN3dT4TsmR1RP6Efoh LvRZJEPqIfymWrVDdegB4fcZTsRMLfboqsAZyB07H2Pv3efptSwbVlZQNazOV0CKRTKELJp12 T6hnHjJfiPgHaeET/4lLxeWpQqh1yvEZpa9g04BXyuZaiqR+bTYbDPu86Y3QXlLrZ8xNTGv52 MPb0ZVkYSVIuLBbjNskifWv4iyySbs2jdJTUKLxtZwnpRIVy4maKCqdsHXYHuTolbfwfjnIQH Qgq8b6vzYbwWkTjjk3BBwlsRsC8XbK0oAan6abCK9oBoi9cHkoSej2nMABMUj1lHCpM82HwEA 2vDRx91F3iIPWwGL8HsgvCuj7bvoV97Yt/0llZoGymerTy8vwuvXNJFBAzTqwdVJkd2hOs+BL 6YyDZg6/mxsKYabWGhKC/EhjICvVQWbrSXGkBUwQZnBWVl2RpczDG2cdm6pssTZIwQmIsvori 8JI7DCAPJLJ4tkoR/39eWnmXNInttBfk7tsC4Lwf2g7VYh+5PeCmkhgg8IIeLsUS5P2YnFtn X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127557 Archived-At: Ken Brown writes: > Hi Michael, Hi Ken, > I just looked at the sources also, and the reason for the roughly > 5-second delays I've been observing is clear. In > gio/gpollfilemonitor.c we have the following: > > #define POLL_TIME_SECS 5 > [...] > schedule_poll_timeout (GPollFileMonitor* poll_monitor) > { > poll_monitor->timeout = g_timeout_source_new_seconds (POLL_TIME_SECS); > [...] > } > > So I guess there's no way to avoid using a value of > file-notify--test-read-event-timeout bigger than 5. Yes, for a polling gfilenotify. I've added the new function Fgfile_monitor_name to gfilenotify.c. It tells us the name of the used monitor. In my case (GNU/Linux), it is GInotifyFileMonitor. In your case it is GPollFileMonitor. Based on this, we could detect better which timeout to use in filenotify-tests.el. I worked on this, and the non-remote cases seem to be OK now (although sometimes not all events do arrive). You could play also with this, just call from Emacs root directory # make -C test filenotify-tests I recommend to change the value of n to 10 temporarily in both file-notify-test06-many-events and file-notify-test08-watched-file-in-watched-dir; otherwise the tests last too long. If you want to run just one test case, call (for example) # make -C test filenotify-tests SELECTOR='\"file-notify-test06-many-events$$\"' SELECTOR is a regexp over test case names. Installing the cygwin package "gvfs" brings you gvfs-monitor-dir.exe. If available, the remote test cases are not skipped anymore. > Best regards, > > Ken Best regards, Michael. PS: Could you pls provide on your site a recompiled Emacs? I would like to use the changed gfilenotify.c. Thanks!