summaryrefslogtreecommitdiff
path: root/test/lisp/files-tests.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-03-28 16:32:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-03-28 16:33:05 -0700
commit9ea56457f5a4bbc7551636023c4cd1cede590bc3 (patch)
tree1a2d3f14e9049df481f9cf9b772ecdd604605e0a /test/lisp/files-tests.el
parentfde99c729c46c775dbdfe5bebf857c67138ae7f0 (diff)
downloademacs-9ea56457f5a4bbc7551636023c4cd1cede590bc3.tar.gz
emacs-9ea56457f5a4bbc7551636023c4cd1cede590bc3.tar.bz2
emacs-9ea56457f5a4bbc7551636023c4cd1cede590bc3.zip
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.
Diffstat (limited to 'test/lisp/files-tests.el')
-rw-r--r--test/lisp/files-tests.el1
1 files changed, 1 insertions, 0 deletions
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))