From: Paul Eggert Date: Wed, 28 Mar 2018 23:32:46 +0000 (-0700) Subject: Test notify handlers only if file notification X-Git-Tag: emacs-27.0.90~5373 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ea56457f5a4bbc7551636023c4cd1cede590bc3;p=emacs.git Test notify handlers only if file notification * test/lisp/files-tests.el: (files-file-name-non-special-notify-handlers): Skip if file notification is not available. --- diff --git a/test/lisp/files-tests.el b/test/lisp/files-tests.el index d07df02877c..1e6cd5eaba7 100644 --- a/test/lisp/files-tests.el +++ b/test/lisp/files-tests.el @@ -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))