From 56db1e84a09b887539adf2b24479d58ddaad5843 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Tue, 30 Jul 2019 16:55:33 +0300 Subject: [PATCH] Guard against flymake-no-changes-timeout being nil * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index af9729028cf..224c57e78a8 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el @@ -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))))) -- 2.39.2