]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/filenotify-tests.el (file-notify-test03-events)
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 5 Jan 2019 11:21:43 +0000 (12:21 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 5 Jan 2019 11:21:43 +0000 (12:21 +0100)
(file-notify-test05-file-validity): Adapt tests.

test/lisp/filenotify-tests.el

index 6c0e8f14aacca4b3ee2c28142d7a1039038935d0..b52eac981daf03e8c1651d93bc26e75dfc7f10b5 100644 (file)
@@ -673,10 +673,8 @@ delivered."
        (file-notify--test-with-events
            (cond
             ;; w32notify does not raise `deleted' and `stopped'
-            ;; events for the watched directory.  Same for inotify on emba.
-            ((or (string-equal (file-notify--test-library) "w32notify")
-                  (and (string-equal (file-notify--test-library) "inotify")
-                       (getenv "EMACS_EMBA_CI")))
+            ;; events for the watched directory.
+            ((string-equal (file-notify--test-library) "w32notify")
              '(created changed deleted))
              ;; gvfs-monitor-dir on cygwin does not detect the
              ;; `created' event reliably.
@@ -689,9 +687,14 @@ delivered."
             ;; cygwin does not raise a `changed' event.
             ((eq system-type 'cygwin)
              '(created deleted stopped))
-             ;; Still not all monitors detect both `deleted' events.
-            (t '((created changed deleted stopped)
-                  (created changed deleted deleted stopped))))
+            ((string-equal (file-notify--test-library) "kqueue")
+             '(created changed deleted stopped))
+             ;; inotify on emba does not detect `deleted' and
+             ;; `stopped' events of the directory.
+             ((and (string-equal (file-notify--test-library) "inotify")
+                   (getenv "EMACS_EMBA_CI"))
+              '(created changed deleted))
+            (t '(created changed deleted deleted stopped)))
          (write-region
           "any text" nil file-notify--test-tmpfile nil 'no-message)
          (file-notify--test-read-event)
@@ -736,6 +739,11 @@ delivered."
              '(created created changed changed deleted stopped))
             ((string-equal (file-notify--test-library) "kqueue")
              '(created changed created changed deleted stopped))
+             ;; inotify on emba does not detect `deleted' and
+             ;; `stopped' events of the directory.
+             ((and (string-equal (file-notify--test-library) "inotify")
+                   (getenv "EMACS_EMBA_CI"))
+              '(created changed created changed deleted deleted))
             (t '(created changed created changed
                  deleted deleted deleted stopped)))
          (write-region
@@ -1033,6 +1041,11 @@ delivered."
           '(created deleted stopped))
          ((string-equal (file-notify--test-library) "kqueue")
           '(created changed deleted stopped))
+          ;; inotify on emba does not detect `deleted' and `stopped'
+          ;; events of the directory.
+          ((and (string-equal (file-notify--test-library) "inotify")
+                (getenv "EMACS_EMBA_CI"))
+           '(created changed deleted))
          (t '(created changed deleted deleted stopped)))
         (write-region
          "any text" nil file-notify--test-tmpfile nil 'no-message)