diff options
-rw-r--r-- | test/ChangeLog | 4 | ||||
-rw-r--r-- | test/automated/inotify-test.el | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index cd6b402ca23..304afeac6e4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,5 +1,9 @@ 2013-07-09 Glenn Morris <rgm@gnu.org> + * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): + Declare. + (inotify-file-watch-simple): Silence compiler. + * automated/python-tests.el (python-indent-block-enders): Make it actually test something. diff --git a/test/automated/inotify-test.el b/test/automated/inotify-test.el index 175f262b282..b4d20cf4fb1 100644 --- a/test/automated/inotify-test.el +++ b/test/automated/inotify-test.el @@ -25,6 +25,9 @@ (require 'ert) +(declare-function inotify-add-watch "inotify.c" (file-name aspect callback)) +(declare-function inotify-rm-watch "inotify.c" (watch-descriptor)) + (when (featurep 'inotify) ;; (ert-deftest filewatch-file-watch-aspects-check () @@ -45,7 +48,7 @@ (let ((temp-file (make-temp-file "inotify-simple")) (events 0)) (let ((wd - (inotify-add-watch temp-file t (lambda (ev) + (inotify-add-watch temp-file t (lambda (_ev) (setq events (1+ events)))))) (unwind-protect (progn |