From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#11218: with-demoted-errors use of condition-case-unless-debug; ert Date: Thu, 12 Apr 2012 20:15:54 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1334276217 31883 80.91.229.3 (13 Apr 2012 00:16:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2012 00:16:57 +0000 (UTC) Cc: 11218@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 13 02:16:56 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIUC4-0001V2-NV for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Apr 2012 02:16:52 +0200 Original-Received: from localhost ([::1]:40455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIUC4-0002mX-1V for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Apr 2012 20:16:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIUC0-0002mH-QT for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 20:16:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SIUBz-0002s6-54 for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 20:16:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SIUBz-0002s1-1E for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 20:16:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SIUDB-0003AZ-VN for bug-gnu-emacs@gnu.org; Thu, 12 Apr 2012 20:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Apr 2012 00:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11218 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11218-submit@debbugs.gnu.org id=B11218.133427623412113 (code B ref 11218); Fri, 13 Apr 2012 00:18:01 +0000 Original-Received: (at 11218) by debbugs.gnu.org; 13 Apr 2012 00:17:14 +0000 Original-Received: from localhost ([127.0.0.1]:55211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIUCP-00039J-TK for submit@debbugs.gnu.org; Thu, 12 Apr 2012 20:17:14 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:56683) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SIUCO-00039D-24 for 11218@debbugs.gnu.org; Thu, 12 Apr 2012 20:17:12 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SIUB9-0005YH-3B; Thu, 12 Apr 2012 20:15:55 -0400 X-Spook: Bruxelles explosion Albright assassinate AVIP Ermes X-Ran: {5YrsyWknXW%FTa9w)~sdMY,Dd'o:+MYrv]eX_L[Qk,$!BRs^8V_2C,N@5vqGF0@(+Vm+G X-Hue: blue X-Attribution: GM In-Reply-To: (Stefan Monnier's message of "Wed, 11 Apr 2012 09:02:02 -0400") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:58959 Archived-At: Stefan Monnier wrote: >> If you replace with-demoted-errors with ignore-errors, the test passes. > > Looks like a bug in ERT. I don't know if it's a "bug" per se... ert--run-test-internal binds debug-on-error to t, and redefines the debugger to ert--run-test-debugger. As the doc of that function says: This function records failures and errors and either terminates the test silently or calls the interactive debugger, as appropriate. (Whether or not the "real" debugger is invoked depends on the value of ert-debug-on-error.) So basically AFAICS it's an ert design choice that it works by borrowing the debugger. I don't imagine it would be easy to change that.