]> git.eshelyaron.com Git - emacs.git/commit
Don't use internal filenotify function in test
authorMattias Engdegård <mattiase@acm.org>
Sun, 19 May 2019 15:57:19 +0000 (17:57 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 24 Jul 2019 09:52:44 +0000 (11:52 +0200)
commit3a764848650365a9794839c5e98fa74bceb76c47
tree3993bd2d0716ce64940f25964e6e990ccdacbced
parent5cfd8c508ea59739eea6093771f0f747ebd64885
Don't use internal filenotify function in test

* test/lisp/filenotify-tests.el
(file-notify--test-file, file-notify--test-add-watch): New.
(file-notify--test-event-test, file-notify--test-event-handler)
(file-notify-test02-rm-watch, file-notify-test03-events)
(file-notify-test05-file-validity, file-notify-test07-many-events)
(file-notify-test08-backup, file-notify-test09-watched-file-in-watched-dir):
Avoid using the internal `file-notify--event-watched-file' so that it
can be removed from filenotify.el.
Instead, pass the file name to the callback as an extra argument;
use `file-notify--test-add-watch' instead of `file-notify-add-watch'.
test/lisp/filenotify-tests.el