]> git.eshelyaron.com Git - emacs.git/commitdiff
Test notify handlers only if file notification
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Mar 2018 23:32:46 +0000 (16:32 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 28 Mar 2018 23:33:05 +0000 (16:33 -0700)
* test/lisp/files-tests.el:
(files-file-name-non-special-notify-handlers):
Skip if file notification is not available.

test/lisp/files-tests.el

index d07df02877c3f28cef83bbf89785528dc3654239..1e6cd5eaba7b0fc67c7803924db035c3e72e9450 100644 (file)
@@ -553,6 +553,7 @@ be invoked with the right arguments."
     (should-not (file-newer-than-file-p nospecial nospecial))))
 
 (ert-deftest files-file-name-non-special-notify-handlers ()
+  (skip-unless file-notify--library)
   (files-tests--with-temp-non-special (tmpfile nospecial)
     (let ((watch (file-notify-add-watch nospecial '(change) #'ignore)))
       (should (file-notify-valid-p watch))