summaryrefslogtreecommitdiff
path: root/test/automated/timer-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'test/automated/timer-tests.el')
-rw-r--r--test/automated/timer-tests.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/automated/timer-tests.el b/test/automated/timer-tests.el
index bc95df5e773..f8e8414f8d7 100644
--- a/test/automated/timer-tests.el
+++ b/test/automated/timer-tests.el
@@ -34,5 +34,9 @@
(sit-for 0 t)
(should timer-ran)))
-;;; timer-tests.el ends here
+(ert-deftest timer-tests-debug-timer-check ()
+ ;; This function exists only if --enable-checking.
+ (if (fboundp 'debug-timer-check)
+ (should (debug-timer-check)) t))
+;;; timer-tests.el ends here