]> git.eshelyaron.com Git - emacs.git/commit
Improve filenotify-tests.el
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 29 Dec 2016 18:48:17 +0000 (19:48 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 29 Dec 2016 18:48:17 +0000 (19:48 +0100)
commitb9cacf044902df441dc7cbd9a21f36833dc40a30
treeffbc9c40a325c9ebff9f5efcd1a053e61fcb3929
parent11b81a54d538e8deca3cd64521cf85409efb617b
Improve filenotify-tests.el

* src/inotify.c (Finotify_valid_p):
* src/kqueue.c (Fkqueue_valid_p):
* src/w32notify.c (Fw32notify_valid_p):
* src/gfilenotify.c (Fgfile_valid_p): Fix typo in docstring.
(Fgfile_monitor_name): New defun.
(syms_of_gfilenotify): Declare Sgfile_monitor_name.

* test/lisp/filenotify-tests.el (file-notify--test-read-event):
New defun, derived from `file-notify--test-read-event-timeout'.
Replace all calls of `read-event' by this.
(file-notify--test-timeout): Fix docstring.
(file-notify--test-monitor): New defun.
(file-notify--deftest-remote): Do not bind
`file-notify--test-read-event-timeout' anymore.
(file-notify-test00-availability): Print also monitor, if existent.
(file-notify--test-with-events): Add an additional
`file-notify--test-read-event' call, in order to get it work
after `file-notify-add-watch'.  Remove special timeout for cygwin.
(file-notify-test02-events): Make a better check for cygwin.
(file-notify-test06-many-events): Improve event list for cygwin.
(file-notify-test08-watched-file-in-watched-dir): Add cygwin case.
src/gfilenotify.c
src/inotify.c
src/kqueue.c
src/w32notify.c
test/lisp/filenotify-tests.el