diff options
| author | Glenn Morris | 2013-07-09 00:43:12 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-07-09 00:43:12 -0700 |
| commit | 0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785 (patch) | |
| tree | cf8d30300a6e91f398c9bdc550773128c0482874 | |
| parent | a87b74fe644d54cabc67d01e962a2bfcbaaa495a (diff) | |
| download | emacs-0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785.tar.gz emacs-0b57d6fc8e9e5c5b4ea27fd8507965a6124fc785.zip | |
* automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): Declare.
(inotify-file-watch-simple): Silence compiler.
| -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 @@ | |||
| 1 | 2013-07-09 Glenn Morris <rgm@gnu.org> | 1 | 2013-07-09 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * automated/inotify-test.el (inotify-add-watch, inotify-rm-watch): | ||
| 4 | Declare. | ||
| 5 | (inotify-file-watch-simple): Silence compiler. | ||
| 6 | |||
| 3 | * automated/python-tests.el (python-indent-block-enders): | 7 | * automated/python-tests.el (python-indent-block-enders): |
| 4 | Make it actually test something. | 8 | Make it actually test something. |
| 5 | 9 | ||
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 @@ | |||
| 25 | 25 | ||
| 26 | (require 'ert) | 26 | (require 'ert) |
| 27 | 27 | ||
| 28 | (declare-function inotify-add-watch "inotify.c" (file-name aspect callback)) | ||
| 29 | (declare-function inotify-rm-watch "inotify.c" (watch-descriptor)) | ||
| 30 | |||
| 28 | (when (featurep 'inotify) | 31 | (when (featurep 'inotify) |
| 29 | 32 | ||
| 30 | ;; (ert-deftest filewatch-file-watch-aspects-check () | 33 | ;; (ert-deftest filewatch-file-watch-aspects-check () |
| @@ -45,7 +48,7 @@ | |||
| 45 | (let ((temp-file (make-temp-file "inotify-simple")) | 48 | (let ((temp-file (make-temp-file "inotify-simple")) |
| 46 | (events 0)) | 49 | (events 0)) |
| 47 | (let ((wd | 50 | (let ((wd |
| 48 | (inotify-add-watch temp-file t (lambda (ev) | 51 | (inotify-add-watch temp-file t (lambda (_ev) |
| 49 | (setq events (1+ events)))))) | 52 | (setq events (1+ events)))))) |
| 50 | (unwind-protect | 53 | (unwind-protect |
| 51 | (progn | 54 | (progn |