GNU bug report logs - #24921
25.1; ERT fails to finish test run if test exceeeds max-lisp-eval-depth

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Thu, 10 Nov 2016 17:56:01 UTC

Severity: minor

Found in version 25.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gemini Lasswell <gazally <at> runbox.com>
To: 24921 <at> debbugs.gnu.org
Subject: bug#24921: 25.1; ERT fails to finish test run if test exceeeds max-lisp-eval-depth
Date: Thu, 10 Nov 2016 09:55:03 -0800
If some code under test by ERT fails by recursing beyond
max-lisp-eval-depth, the resulting error stops the ERT test run without
marking the test as finished or failed.

To reproduce, using emacs -Q or not, enter this code into *scratch*:

(defun go-boom ()
  (go-boom))

(ert-deftest test-go-boom ()
  (should (go-boom)))

And then:
  M-x eval-buffer RET
  M-x ert RET RET

Result: The ERT window appears and shows that it is running the test.
But it never shows that it finishes. Any tests that you have defined
that follow test-go-boom in alphabetical order will not run. The echo
area will show the message "Lisp nesting exceeds ‘max-lisp-eval-depth’"




This bug report was last modified 5 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.