aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-03-28 16:32:46 -0700
committerPaul Eggert2018-03-28 16:33:05 -0700
commit9ea56457f5a4bbc7551636023c4cd1cede590bc3 (patch)
tree1a2d3f14e9049df481f9cf9b772ecdd604605e0a
parentfde99c729c46c775dbdfe5bebf857c67138ae7f0 (diff)
downloademacs-9ea56457f5a4bbc7551636023c4cd1cede590bc3.tar.gz
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.
-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."
553 (should-not (file-newer-than-file-p nospecial nospecial)))) 553 (should-not (file-newer-than-file-p nospecial nospecial))))
554 554
555(ert-deftest files-file-name-non-special-notify-handlers () 555(ert-deftest files-file-name-non-special-notify-handlers ()
556 (skip-unless file-notify--library)
556 (files-tests--with-temp-non-special (tmpfile nospecial) 557 (files-tests--with-temp-non-special (tmpfile nospecial)
557 (let ((watch (file-notify-add-watch nospecial '(change) #'ignore))) 558 (let ((watch (file-notify-add-watch nospecial '(change) #'ignore)))
558 (should (file-notify-valid-p watch)) 559 (should (file-notify-valid-p watch))