]> git.eshelyaron.com Git - emacs.git/commit
Make auto-revert-mode tests run faster
authorStefan Kangas <stefan@marxist.se>
Sat, 12 Sep 2020 17:49:20 +0000 (19:49 +0200)
committerStefan Kangas <stefan@marxist.se>
Mon, 19 Oct 2020 15:25:34 +0000 (17:25 +0200)
commitfe16248b77067281e25ac90b393a1e0da77d445e
tree636b842f3ffa559a1829edd34e816c1aa9b0567b
parent74519db6dfcffad8ac7a273d43992d2535320a8c
Make auto-revert-mode tests run faster

* test/lisp/autorevert-tests.el (auto-revert--timeout): Make into
defun and shorten timeout by a factor 10.
(auto-revert--wait-for-revert): Cut timeouts in half.
(with-auto-revert-test): New macro to set timeout to 0.1.
(auto-revert-tests--write-file): New defun.
(auto-revert-test00-auto-revert-mode)
(auto-revert-test01-auto-revert-several-files)
(auto-revert-test02-auto-revert-deleted-file)
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired)
(auto-revert-test05-global-notify)
(auto-revert-test06-write-file): Adapt test to run faster.  Remove
:expensive-test marks.

This was discussed in:
https://lists.gnu.org/r/emacs-devel/2020-10/msg01233.html
test/lisp/autorevert-tests.el