From 9ea56457f5a4bbc7551636023c4cd1cede590bc3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 28 Mar 2018 16:32:46 -0700 Subject: [PATCH] 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. --- test/lisp/files-tests.el | 1 + 1 file changed, 1 insertion(+) 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)) -- 2.39.2