From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#58941: 28.1.90; ERT tests and backtraces Date: Tue, 01 Nov 2022 06:04:49 +0000 Message-ID: <874jvjjjlq.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12915"; mail-complaints-to="usenet@ciao.gmane.io" To: 58941@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 01 07:05:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1opkOp-00036R-Re for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Nov 2022 07:05:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opkOW-0000C2-KU; Tue, 01 Nov 2022 02:05:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opkOU-0000Bq-Bb for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 02:05:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opkOU-0002Wv-41 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 02:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opkOT-0007e8-VK for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 02:05:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Nov 2022 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58941 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166728265829311 (code B ref -1); Tue, 01 Nov 2022 06:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2022 06:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:42483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opkNm-0007cg-1M for submit@debbugs.gnu.org; Tue, 01 Nov 2022 02:04:18 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opkNk-0007cW-0n for submit@debbugs.gnu.org; Tue, 01 Nov 2022 02:04:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opkNj-00007E-R4 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 02:04:15 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opkNh-0002DP-O3 for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2022 02:04:15 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 44A64240027 for ; Tue, 1 Nov 2022 07:04:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667282651; bh=MLMtQPk+YHipLzNBm3KBC+ZcxZeFryYZpvmbNUFeXNk=; h=From:To:Subject:Date:From; b=U6/37Y4E4gzo7e69I33Vjr9bQeqwh782QIrrptui+EHgc53PqZGUPHoJASw/CHsue 26UjFq4WcRZ+EhapXSbz2bulYEZofxIHz8mFKrz9Neon5BUf2/oF1EY+ZjmfwwNbzy H7sp9pb3pkazCstxtyV3/qfeslYpaw/Ycbkzlvg/Vw8sHQtdAZprsmbTD1n8EfGl0h 2rr2Ml0UXCGC3E6sh2awGUjvmpyPgs/bgpQtfwbFyp7pod+H0zZYC8mZZo9+xvcKnE MN7WZ+H/ynevSmnf4t3mJcOXKTGLTUznEt5RnUe+7iLRpO0Aa99rHwGYeNQJbpv4hp tbYG+XQvyaekg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N1fbq02X4z6tm9 for ; Tue, 1 Nov 2022 07:04:06 +0100 (CET) Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246742 Archived-At: Hi, Currently, when one runs tests and error is thrown inside `should' forms, no meaningful backtrace is being produced. This is because `should' wraps the code into `condition-case' that truncates the backtraces. Would it be possible to allow more informative backtraces in failed ERT tests? An example of useless backtrace can be found in https://builds.sr.ht/~bzg/job/872738: Test test-ob-scheme/unspecified backtrace: signal(void-function (p)) apply(signal (void-function (p))) (setq value-1494 (apply fn-1492 args-1493)) (unwind-protect (setq value-1494 (apply fn-1492 args-1493)) (setq fo (if (unwind-protect (setq value-1494 (apply fn-1492 args-1493)) (set (let (form-description-1496) (if (unwind-protect (setq value-1494 (a (let ((value-1494 (quote ert-form-evaluation-aborted-1495))) (let (f (let* ((fn-1492 (function equal)) (args-1493 (condition-case err (le (closure (t) nil (let* ((fn-1492 (function equal)) (args-1493 (condi ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name test-ob-scheme/unspecified :documenta ert-run-or-rerun-test(#s(ert--stats :selector "\\(org\\|ob\\|ox\\)" ert-run-tests("\\(org\\|ob\\|ox\\)" #f(compiled-function (event-type ert-run-tests-batch("\\(org\\|ob\\|ox\\)") ert-run-tests-batch-and-exit("\\(org\\|ob\\|ox\\)") (let ((org-id-track-globally t) (org-test-selector (if org-test-sele org-test-run-batch-tests("\\(org\\|ob\\|ox\\)") eval((org-test-run-batch-tests org-test-select-re)) command-line-1(("--load" "/home/build/.emacs.d/init.el" "--eval" "(s command-line() normal-top-level() Test test-ob-scheme/unspecified condition: (void-function p) FAILED 236/1034 test-ob-scheme/unspecified The real backtrace there is p(nil) geiser-repl-project-root() geiser-repl-buffer-name(guile) geiser-repl--to-repl-buffer(guile) geiser-repl--start-repl(guile nil) geiser(guile) org-babel-scheme-get-repl(guile nil) org-babel-scheme-execute-with-geiser("'(1 2 3)" nil guile nil) org-babel-execute:scheme("'(1 2 3)" ((:colname-names) (:rowname-name org-babel-execute-src-block(nil) org-babel-execute-src-block-maybe() org-babel-execute-maybe() -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at