]> git.eshelyaron.com Git - emacs.git/commitdiff
Guard against flymake-no-changes-timeout being nil
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 30 Jul 2019 13:55:33 +0000 (16:55 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Tue, 30 Jul 2019 13:59:59 +0000 (16:59 +0300)
* test/lisp/progmodes/flymake-tests.el
(flymake-tests--wait-for-backends): Guard against
flymake-no-changes-timeout being nil (in personal configurations)
to help when running tests interactively.

test/lisp/progmodes/flymake-tests.el

index af9729028cf9cbe5d5010e9a29abe9f0798e493b..224c57e78a872cd6e5699aa64a6d94b781c9208d 100644 (file)
@@ -52,7 +52,7 @@
                                             (flymake-reporting-backends))
            while notdone
            unless noninteractive do (read-event "" nil 0.1)
-           do (sleep-for (+ 0.5 flymake-no-changes-timeout))
+           do (sleep-for (+ 0.5 (or flymake-no-changes-timeout 0)))
            finally (when notdone (ert-skip
                                   (format "Some backends not reporting yet %s"
                                           notdone)))))