From: Lars Ingebrigtsen <larsi@gnus.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: Mike Kupfer <mkupfer@alum.berkeley.edu>, 50629@debbugs.gnu.org
Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert
Date: Sat, 27 Aug 2022 16:29:04 +0200 [thread overview]
Message-ID: <871qt192vj.fsf@gnus.org> (raw)
In-Reply-To: <m2wnatixwp.fsf@Mini.fritz.box> ("Gerd Möllmann"'s message of "Sat, 27 Aug 2022 16:06:14 +0200")
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> That's what I meant with macrology. Please macroexpand and look at
> what's actually executed.
This is what macroexpand-all says is executed:
(progn
(ert-set-test
'f
(record 'ert-test 'f
nil #'(lambda ()
(defalias 'foo #'(lambda ()
(bar)))
(defalias 'bar #'(lambda ()
(zot)))
(let* ((fn-573 #'equal)
(args-574 (condition-case err (let ( foo)
(list 42 (foo)))
(error (progn
(setq fn-573 #'signal)
(list (car err) (cdr err)))))))
(let ((value-575 'ert-form-evaluation-aborted-576))
(let ( form-description-577)
(if (unwind-protect (setq value-575 (apply fn-573 args-574))
(setq form-description-577
(nconc (list '(should (equal 42 (foo))))
(list :form
(cons fn-573 args-574))
(if (eql value-575
'ert-form-evaluation-aborted-576) ()
(list :value value-575))
(if (eql value-575
'ert-form-evaluation-aborted-576) ()
(let* ((-explainer- (and t (ert--get-explainer 'equal))))
(if -explainer- (list :explanation
(apply
-explainer-
args-574))
nil)))))
(ert--signal-should-execution form-description-577)) ()
(ert-fail form-description-577)))
value-575)))
nil
':passed
'nil
nil))
'f)
The foo->bar->zot calling sequence is preserved.
next prev parent reply other threads:[~2022-08-27 14:29 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-16 23:28 bug#50629: 28.0.50; hard to debug an uncaught error with ert Mike Kupfer
2022-08-26 11:41 ` Lars Ingebrigtsen
2022-08-26 13:52 ` Gerd Möllmann
2022-08-27 13:20 ` Lars Ingebrigtsen
2022-08-27 13:44 ` Gerd Möllmann
2022-08-27 13:52 ` Lars Ingebrigtsen
2022-08-27 14:06 ` Gerd Möllmann
2022-08-27 14:29 ` Lars Ingebrigtsen [this message]
2022-08-27 14:38 ` Mike Kupfer
2022-08-27 14:40 ` Lars Ingebrigtsen
2022-08-27 15:13 ` Gerd Möllmann
2022-08-28 1:21 ` Ihor Radchenko
2022-08-28 9:27 ` Gerd Möllmann
2022-08-28 10:03 ` Lars Ingebrigtsen
2022-08-28 10:31 ` Gerd Möllmann
2022-08-28 10:43 ` Gerd Möllmann
2022-08-28 12:25 ` Gerd Möllmann
2022-08-29 14:46 ` Lars Ingebrigtsen
2022-08-29 15:20 ` Gerd Möllmann
2022-08-29 15:28 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871qt192vj.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=50629@debbugs.gnu.org \
--cc=gerd.moellmann@gmail.com \
--cc=mkupfer@alum.berkeley.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).