From unknown Tue Jun 17 22:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24921: 25.1; ERT fails to finish test run if test exceeeds max-lisp-eval-depth Resent-From: Gemini Lasswell Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 10 Nov 2016 17:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24921@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14788005419991 (code B ref -1); Thu, 10 Nov 2016 17:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Nov 2016 17:55:41 +0000 Received: from localhost ([127.0.0.1]:52587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4tZc-0002b5-NW for submit@debbugs.gnu.org; Thu, 10 Nov 2016 12:55:40 -0500 Received: from eggs.gnu.org ([208.118.235.92]:49894) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4tZa-0002ar-DQ for submit@debbugs.gnu.org; Thu, 10 Nov 2016 12:55:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4tZU-0004lW-Fd for submit@debbugs.gnu.org; Thu, 10 Nov 2016 12:55:33 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4tZU-0004lS-Di for submit@debbugs.gnu.org; Thu, 10 Nov 2016 12:55:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4tZT-0007P1-8h for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 12:55:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4tZQ-0004jg-77 for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 12:55:31 -0500 Received: from aibo.runbox.com ([91.220.196.211]:53702) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c4tZQ-0004i7-0t for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 12:55:28 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1c4tZO-0007ma-3v for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 18:55:26 +0100 Received: from c-24-22-244-161.hsd1.wa.comcast.net ([24.22.244.161] helo=rainbow.local) by mailfront12.runbox.com with esmtpsa (uid:179284 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1c4tZN-00070U-IP for bug-gnu-emacs@gnu.org; Thu, 10 Nov 2016 18:55:26 +0100 From: Gemini Lasswell Date: Thu, 10 Nov 2016 09:55:03 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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 =E2=80=98max-lisp-eval-dep= th=E2=80=99" From unknown Tue Jun 17 22:27:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24921: 25.1; ERT fails to finish test run if test exceeeds max-lisp-eval-depth Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 12:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24921 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gemini Lasswell Cc: 24921@debbugs.gnu.org Received: via spool by 24921-submit@debbugs.gnu.org id=B24921.156423037720223 (code B ref 24921); Sat, 27 Jul 2019 12:27:01 +0000 Received: (at 24921) by debbugs.gnu.org; 27 Jul 2019 12:26:17 +0000 Received: from localhost ([127.0.0.1]:43814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrLmC-0005G7-PN for submit@debbugs.gnu.org; Sat, 27 Jul 2019 08:26:16 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrLm9-0005Ft-7i for 24921@debbugs.gnu.org; Sat, 27 Jul 2019 08:26:16 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrLm5-0008Ab-CO; Sat, 27 Jul 2019 14:26:11 +0200 From: Lars Ingebrigtsen References: Date: Sat, 27 Jul 2019 14:26:08 +0200 In-Reply-To: (Gemini Lasswell's message of "Thu, 10 Nov 2016 09:55:03 -0800") Message-ID: <87ef2birz3.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Gemini Lasswell writes: > 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 e [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gemini Lasswell writes: > 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 =E2=80=98max-lisp-eval-d= epth=E2=80=99" This seems to have been fixed in the years since this bug was reported; I get the result below, so I'm closing this bug report. If you're still seeing this, please reopen. ------- Selector: t Passed: 0 Failed: 1 (1 unexpected) Skipped: 0 Total: 1/1 Started at: 2019-07-27 14:24:49+0200 Finished. Finished at: 2019-07-27 14:24:49+0200 F F test-go-boom (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80=99") --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 27 08:26:20 2019 Received: (at control) by debbugs.gnu.org; 27 Jul 2019 12:26:20 +0000 Received: from localhost ([127.0.0.1]:43817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrLmG-0005GR-3n for submit@debbugs.gnu.org; Sat, 27 Jul 2019 08:26:20 -0400 Received: from quimby.gnus.org ([80.91.231.51]:37454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrLmE-0005GI-T3 for control@debbugs.gnu.org; Sat, 27 Jul 2019 08:26:19 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hrLmC-0008At-A0 for control@debbugs.gnu.org; Sat, 27 Jul 2019 14:26:18 +0200 Date: Sat, 27 Jul 2019 14:26:15 +0200 Message-Id: <87d0hviryw.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #24921 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 24921 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 24921 quit