From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#47262: [platform-testers] Emacs 27.2 RC2 Date: Mon, 22 Mar 2021 15:47:35 +0100 Message-ID: <87czvr6y9k.fsf@gmx.de> References: <835z1nfvdw.fsf@gnu.org> <736DA57A-EA29-4133-9D70-1467B3B8D7A6@opencsw.org> <87tup66vrp.fsf@gmx.de> <35210B18-1068-41CF-A18E-318E9C37CEDC@opencsw.org> <87pmzt7rh9.fsf@gmx.de> <87lfag7jw8.fsf@gmx.de> <4390F29D-9987-42C5-AE07-0CE61EB52C55@opencsw.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47262@debbugs.gnu.org To: Dagobert Michelsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 22 16:09:54 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lOMBm-0003Od-2M for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 16:09:54 +0100 Original-Received: from localhost ([::1]:55322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOMBl-0004ni-1c for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Mar 2021 11:09:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOLqc-0007o0-78 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 10:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOLqb-0006Ex-U1 for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 10:48:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lOLqb-0002Hh-Qf for bug-gnu-emacs@gnu.org; Mon, 22 Mar 2021 10:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 14:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47262 X-GNU-PR-Package: emacs Original-Received: via spool by 47262-submit@debbugs.gnu.org id=B47262.16164244678757 (code B ref 47262); Mon, 22 Mar 2021 14:48:01 +0000 Original-Received: (at 47262) by debbugs.gnu.org; 22 Mar 2021 14:47:47 +0000 Original-Received: from localhost ([127.0.0.1]:58253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOLqM-0002HA-9O for submit@debbugs.gnu.org; Mon, 22 Mar 2021 10:47:47 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:35349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOLqK-0002Gr-8j for 47262@debbugs.gnu.org; Mon, 22 Mar 2021 10:47:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1616424456; bh=g5B8kPIfT6J3PPR1zznoOKQQRBZWaqM+iHfh87+A8r0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=jDfaetDkh9btAWIbpWZFJ4/T/22pkFXgqFSDgF3UW44/8QDbo+VAONFyjElI41OP6 Odhp5XQqTHhPjvqzFBg+56ZGqxgQJVMJXWfr5ZcYkZfDdh2PRsBmjYmdhewMdCV9dW eSyIQul5K/7FeEl1CryUJ0vRhIVJARvFkYnzyeRA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.125.163]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MvK4f-1lg9sH1fCz-00rGCO; Mon, 22 Mar 2021 15:47:36 +0100 In-Reply-To: <4390F29D-9987-42C5-AE07-0CE61EB52C55@opencsw.org> (Dagobert Michelsen's message of "Mon, 22 Mar 2021 15:17:30 +0100") X-Provags-ID: V03:K1:3cskVzEZ+u1WsieSSd4Im97A3PaaM+mJcHzhUFvt/PRu1Zen2LW RwnG5kVjqJfhEg7n7G2T6Ar3tjnylOG2/lxHiR10eYdc0wvORjnnl9IBsrQUhvPTywa0u/C 5izgJ6MSBU8v1Nox90+H+zVlRtqhWobvjwroMsQ2a6SKt2jymG3YCh/iL5jSuF2v+0sVVJc KD23XEZPgg8oMVCUq6juw== X-UI-Out-Filterresults: notjunk:1;V03:K0:U8oLgQPWk7w=:qkFNbX0ufyF15o/qroRMVx DcdtUI/tW//lJJv+ldr3bd2uMdpNHFgScLpNNjYB2i8PvQ0WvKQVIYwUMV4DOzNJfXjUlnnN1 4VBZaIyEYMmN5yS56ibc3MmutN71HLM6X3U2XT/yqCKYVwTxkZZmAu2GrSpSOH/oj0O2ZIES2 sUwUABa6ZqCvprfMkd1Jqss9GDoUpkjdT6/jYnj2qjPVK6eu7toVnREKUigaJaD7q3t8HX4uE ThsKUS891ViydMUd3x/FeC6wRPln4WoisA9i0v5Vxz3vVilqeRplBLRaR1Cfc3QGh/vzDPD0J XpVWvzj68l9NHK71p2MGbkvXtwNoFGmEXFXvecynnYev7NVFOGJV/6QFV2yy2FiWZYO1Gu04f jS7qIbokdBz60dRhzrn1JRXTMI1RriUtXIgu9ykgaxunYH3LhtBeClx1pkHx23/54uZGdA5L+ x7G1qkBQ5rJPhGKYdVVoC/12/Wgftq89UhbvLt4rfP+FN0c8J/dQG4T3wSFBSRDlTPavvUvqP xU1I9r+lNCKl9WHeEAy+Mkk2qHhG/izvAO/nQZYt1A8OxGD13wrhYR50b11GztnyaO1T1pguS 77VtbnaiyGQJ1BppkQnoJscXkHO+SeFQG6Q4jbvk45lxoZWYUJe9ky7okbC/ge5s3wB2MfCVH ZEkI+B6BqFoHHvQOIcGVcd/HvIju3gUYE82J2VGhNS8yXvvrwOY9esmo96MoDuv/ZX8jVPA+F IDgkHOv3oyZXFQESyyedQPaYB+WjoQd1581E5PJRhELZC2xM51w6tMbd1RY+r5wG7xWxDYLY X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202835 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dagobert Michelsen writes: > Hi Michael, Hi Dago, >> # make -C test filenotify-tests.log > > This does not terminate in test #7 and I manually needed to kill it: Oops, yes. file-notify-test07-many-events and file-notify-test09-watched-file-in-watched-dir run large loops. I've reduced the number of iterations in both tests, see appended patch. It contains also some other changes I have applied last days, testing on cygwi= n. > Best regards > > =E2=80=94 Dago Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable *** /tmp/ediffmmNEZ6 2021-03-22 15:43:13.464939528 +0100 =2D-- /home/albinus/src/emacs-27/test/lisp/filenotify-tests.el 2021-03-22 = 15:41:35.740131740 +0100 *************** *** 105,115 **** (cond ;; gio/gpollfilemonitor.c declares POLL_TIME_SECS 5. So we must ;; wait at least this time in the GPollFileMonitor case. A ! ;; similar timeout seems to be needed in the GFamFileMonitor case, ! ;; at least on Cygwin. ! ((and (string-equal (file-notify--test-library) "gfilenotify") ! (memq (file-notify--test-monitor) ! '(GFamFileMonitor GPollFileMonitor))) 7) ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") 1= ) ((file-remote-p temporary-file-directory) 0.1) =2D-- 105,114 ---- (cond ;; gio/gpollfilemonitor.c declares POLL_TIME_SECS 5. So we must ;; wait at least this time in the GPollFileMonitor case. A ! ;; similar timeout seems to be needed in the ! ;; GFam{File,Directory}Monitor case. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor GPollFileMonitor)) 7) ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") 1= ) ((file-remote-p temporary-file-directory) 0.1) *************** *** 263,274 **** ;; `gfile-monitor-name' does not return a proper result anymore. ;; But we still need this information. (unless (file-remote-p temporary-file-directory) ! (or (cdr (assq file-notify--test-desc file-notify--test-monitors)) (when (functionp 'gfile-monitor-name) (add-to-list 'file-notify--test-monitors (cons file-notify--test-desc (gfile-monitor-name file-notify--test-desc)= )) ! (cdr (assq file-notify--test-desc file-notify--test-monitors))= )))) (defmacro file-notify--deftest-remote (test docstring &optional unstable= ) "Define ert `TEST-remote' for remote files. =2D-- 262,273 ---- ;; `gfile-monitor-name' does not return a proper result anymore. ;; But we still need this information. (unless (file-remote-p temporary-file-directory) ! (or (alist-get file-notify--test-desc file-notify--test-monitors) (when (functionp 'gfile-monitor-name) (add-to-list 'file-notify--test-monitors (cons file-notify--test-desc (gfile-monitor-name file-notify--test-desc)= )) ! (alist-get file-notify--test-desc file-notify--test-monitors))= ))) (defmacro file-notify--deftest-remote (test docstring &optional unstable= ) "Define ert `TEST-remote' for remote files. *************** *** 455,461 **** (unwind-protect ;; Check, that removing watch descriptors out of order do not ! ;; harm. This fails on Cygwin because of timing issues unless a ;; long `sit-for' is added before the call to ;; `file-notify--test-read-event'. (unless (eq system-type 'cygwin) =2D-- 454,460 ---- (unwind-protect ;; Check, that removing watch descriptors out of order do not ! ;; harm. This fails on cygwin because of timing issues unless a ;; long `sit-for' is added before the call to ;; `file-notify--test-read-event'. (unless (eq system-type 'cygwin) *************** *** 542,547 **** =2D-- 541,550 ---- file-notify--test-results (append file-notify--test-results `(,result)))))) + (defun file-notify--test-event-actions () + "Helper function to return retrieved actions, as list." + (mapcar #'file-notify--test-event-action file-notify--test-events)) + (defun file-notify--test-with-actions-check (actions) "Check whether received actions match one of the ACTIONS alternatives.= " (let (result) *************** *** 550,571 **** (or result (if (eq (car elt) :random) (equal (sort (cdr elt) 'string-lessp) ! (sort (mapcar #'file-notify--test-event-actio= n ! file-notify--test-events) 'string-lessp)) ! (equal elt (mapcar #'file-notify--test-event-action ! file-notify--test-events)))))))) (defun file-notify--test-with-actions-explainer (actions) "Explain why `file-notify--test-with-actions-check' fails." (if (null (cdr actions)) (format "Received actions do not match expected actions\n%s\n%s" ! (mapcar #'file-notify--test-event-action file-notify--test= -events) ! (car actions)) (format "Received actions do not match any sequence of expected actions\n%s= \n%s" ! (mapcar #'file-notify--test-event-action file-notify--test-events) ! actions))) (put 'file-notify--test-with-actions-check 'ert-explainer 'file-notify--test-with-actions-explainer) =2D-- 553,577 ---- (or result (if (eq (car elt) :random) (equal (sort (cdr elt) 'string-lessp) ! (sort (file-notify--test-event-actions) 'string-lessp)) ! (equal elt (file-notify--test-event-actions)))))) ! ;; Do not report result in case we debug. Write messages instead. ! (if file-notify-debug ! (prog1 t ! (if result ! (message "Success\n%s" (file-notify--test-event-actions)) ! (message (file-notify--test-with-actions-explainer actions))= )) ! result))) (defun file-notify--test-with-actions-explainer (actions) "Explain why `file-notify--test-with-actions-check' fails." (if (null (cdr actions)) (format "Received actions do not match expected actions\n%s\n%s" ! (file-notify--test-event-actions) (car actions)) (format "Received actions do not match any sequence of expected actions\n%s= \n%s" ! (file-notify--test-event-actions) actions))) (put 'file-notify--test-with-actions-check 'ert-explainer 'file-notify--test-with-actions-explainer) *************** *** 632,640 **** (file-notify--test-library) "gvfs-monitor-dir.exe") '((deleted stopped) (created deleted stopped))) ! ;; cygwin does not raise a `changed' event. ! ((eq system-type 'cygwin) ! '(created deleted stopped)) (t '(created changed deleted stopped))) (write-region "another text" nil file-notify--test-tmpfile nil 'no-message) =2D-- 638,647 ---- (file-notify--test-library) "gvfs-monitor-dir.exe") '((deleted stopped) (created deleted stopped))) ! ;; GFam{File,Directory}Monitor do not report the `changed' event. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) ! '(created deleted stopped)) (t '(created changed deleted stopped))) (write-region "another text" nil file-notify--test-tmpfile nil 'no-message) *************** *** 665,670 **** =2D-- 672,683 ---- ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") '((deleted stopped) (changed deleted stopped))) + ;; GFam{File,Directory}Monitor do not detect the + ;; `changed' event reliably. + ((memq (file-notify--test-monitor) + '(GFamFileMonitor GFamDirectoryMonitor)) + '((deleted stopped) + (changed deleted stopped))) ;; There could be one or two `changed' events. (t '((changed deleted stopped) (changed changed deleted stopped)))) *************** *** 709,717 **** ((getenv "EMACS_EMBA_CI") '(created changed deleted)) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for cygwin and kqueue. And ! ;; cygwin does not raise a `changed' event. ! ((eq system-type 'cygwin) '(created deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed deleted stopped)) =2D-- 722,732 ---- ((getenv "EMACS_EMBA_CI") '(created changed deleted)) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for GFam{File,Directory}Monitor ! ;; and kqueue. And GFam{File,Directory}Monitor do not ! ;; raise a `changed' event. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) '(created deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed deleted stopped)) *************** *** 755,762 **** '((deleted stopped) (created created deleted stopped))) ;; There are three `deleted' events, for two files and ! ;; for the directory. Except for cygwin and kqueue. ! ((eq system-type 'cygwin) '(created created changed changed deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed created changed deleted stopped)) =2D-- 770,779 ---- '((deleted stopped) (created created deleted stopped))) ;; There are three `deleted' events, for two files and ! ;; for the directory. Except for ! ;; GFam{File,Directory}Monitor and kqueue. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) '(created created changed changed deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed created changed deleted stopped)) *************** *** 813,822 **** ((getenv "EMACS_EMBA_CI") '(created changed renamed deleted)) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for cygwin and kqueue. And ! ;; cygwin raises `created' and `deleted' events instead ! ;; of a `renamed' event. ! ((eq system-type 'cygwin) '(created created deleted deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed renamed deleted stopped)) =2D-- 830,841 ---- ((getenv "EMACS_EMBA_CI") '(created changed renamed deleted)) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for GFam{File,Directory}Monitor ! ;; and kqueue. And GFam{File,Directory}Monitor raise ! ;; `created' and `deleted' events instead of a `renamed' ! ;; event. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) '(created created deleted deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed renamed deleted stopped)) *************** *** 837,844 **** (file-notify--test-cleanup)) (unwind-protect ! ;; Check attribute change. Does not work for cygwin. ! (unless (eq system-type 'cygwin) (setq file-notify--test-tmpfile (file-notify--test-make-temp-name)) (write-region "any text" nil file-notify--test-tmpfile nil 'no-message) =2D-- 856,863 ---- (file-notify--test-cleanup)) (unwind-protect ! ;; Check attribute change. Does not work for GFam{File,Directory}= Monitor. ! (progn (setq file-notify--test-tmpfile (file-notify--test-make-temp-name)) (write-region "any text" nil file-notify--test-tmpfile nil 'no-message) *************** *** 847,875 **** (file-notify--test-add-watch file-notify--test-tmpfile '(attribute-change) #'file-notify--test-event-handler))) ! (file-notify--test-with-actions ! (cond ! ;; w32notify does not distinguish between `changed' and ! ;; `attribute-changed'. Under MS Windows 7, we get four ! ;; `changed' events, and under MS Windows 10 just two. ! ;; Strange. ! ((string-equal (file-notify--test-library) "w32notify") ! '((changed changed) ! (changed changed changed changed))) ! ;; For kqueue and in the remote case, `write-region' ! ;; raises also an `attribute-changed' event. ! ((or (string-equal (file-notify--test-library) "kqueue") ! (file-remote-p temporary-file-directory)) ! '(attribute-changed attribute-changed attribute-changed)) ! (t '(attribute-changed attribute-changed))) ! (write-region ! "any text" nil file-notify--test-tmpfile nil 'no-message) ! (file-notify--test-read-event) ! (set-file-modes file-notify--test-tmpfile 000) ! (file-notify--test-read-event) ! (set-file-times file-notify--test-tmpfile '(0 0)) ! (file-notify--test-read-event) ! (delete-file file-notify--test-tmpfile)) (file-notify-rm-watch file-notify--test-desc) ;; The environment shall be cleaned up. =2D-- 866,896 ---- (file-notify--test-add-watch file-notify--test-tmpfile '(attribute-change) #'file-notify--test-event-handler))) ! (unless (memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) ! (file-notify--test-with-actions ! (cond ! ;; w32notify does not distinguish between `changed' and ! ;; `attribute-changed'. Under MS Windows 7, we get ! ;; four `changed' events, and under MS Windows 10 just ! ;; two. Strange. ! ((string-equal (file-notify--test-library) "w32notify") ! '((changed changed) ! (changed changed changed changed))) ! ;; For kqueue and in the remote case, `write-region' ! ;; raises also an `attribute-changed' event. ! ((or (string-equal (file-notify--test-library) "kqueue") ! (file-remote-p temporary-file-directory)) ! '(attribute-changed attribute-changed attribute-changed)) ! (t '(attribute-changed attribute-changed))) ! (write-region ! "any text" nil file-notify--test-tmpfile nil 'no-message) ! (file-notify--test-read-event) ! (set-file-modes file-notify--test-tmpfile 000) ! (file-notify--test-read-event) ! (set-file-times file-notify--test-tmpfile '(0 0)) ! (file-notify--test-read-event) ! (delete-file file-notify--test-tmpfile))) (file-notify-rm-watch file-notify--test-desc) ;; The environment shall be cleaned up. *************** *** 951,957 **** ;; Modify file. We wait for two seconds, in order to ;; have another timestamp. One second seems to be too ! ;; short. And Cygwin sporadically requires more than two. (ert-with-message-capture captured-messages (sleep-for (if (eq system-type 'cygwin) 3 2)) (write-region =2D-- 972,978 ---- ;; Modify file. We wait for two seconds, in order to ;; have another timestamp. One second seems to be too ! ;; short. And cygwin sporadically requires more than two. (ert-with-message-capture captured-messages (sleep-for (if (eq system-type 'cygwin) 3 2)) (write-region *************** *** 1021,1026 **** =2D-- 1042,1053 ---- ((string-equal (file-notify--test-library) "gvfs-monitor-dir.exe") '((deleted stopped) (changed deleted stopped))) + ;; GFam{File,Directory}Monitor do not detect the + ;; `changed' event reliably. + ((memq (file-notify--test-monitor) + '(GFamFileMonitor GFamDirectoryMonitor)) + '((deleted stopped) + (changed deleted stopped))) ;; There could be one or two `changed' events. (t '((changed deleted stopped) (changed changed deleted stopped)))) *************** *** 1064,1072 **** '((deleted stopped) (created deleted stopped))) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for cygwin and kqueue. And ! ;; cygwin does not raise a `changed' event. ! ((eq system-type 'cygwin) '(created deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed deleted stopped)) =2D-- 1091,1102 ---- '((deleted stopped) (created deleted stopped))) ;; There are two `deleted' events, for the file and for ! ;; the directory. Except for ! ;; GFam{File,Directory}Monitor and kqueue. And ! ;; GFam{File,Directory}Monitor do not raise a `changed' ! ;; event. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) '(created deleted stopped)) ((string-equal (file-notify--test-library) "kqueue") '(created changed deleted stopped)) *************** *** 1169,1175 **** file-notify--test-tmpfile '(change) #'file-notify--test-event-handler))) (unwind-protect ! (let ((n 1000) source-file-list target-file-list (default-directory file-notify--test-tmpfile)) (dotimes (i n) =2D-- 1199,1205 ---- file-notify--test-tmpfile '(change) #'file-notify--test-event-handler))) (unwind-protect ! (let ((n 10);00) source-file-list target-file-list (default-directory file-notify--test-tmpfile)) (dotimes (i n) *************** *** 1283,1291 **** (should (file-notify-valid-p file-notify--test-desc)) (file-notify--test-with-actions (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. =2D-- 1313,1322 ---- (should (file-notify-valid-p file-notify--test-desc)) (file-notify--test-with-actions (cond ! ;; GFam{File,Directory}Monitor report only the `changed' event. ! ((memq (file-notify--test-monitor) ! '(GFamFileMonitor GFamDirectoryMonitor)) ! '(changed)) (t '(renamed created changed))) ;; The file is renamed when creating a backup. It shall ;; still be watched. *************** *** 1355,1361 **** (should (file-notify-valid-p file-notify--test-desc1)) (should (file-notify-valid-p file-notify--test-desc2)) (should-not (equal file-notify--test-desc1 file-notify--test-des= c2)) ! (let ((n 100)) ;; Run the test. (file-notify--test-with-actions ;; There could be one or two `changed' events. =2D-- 1386,1392 ---- (should (file-notify-valid-p file-notify--test-desc1)) (should (file-notify-valid-p file-notify--test-desc2)) (should-not (equal file-notify--test-desc1 file-notify--test-des= c2)) ! (let ((n 10));0)) ;; Run the test. (file-notify--test-with-actions ;; There could be one or two `changed' events. --=-=-=--