]> git.eshelyaron.com Git - emacs.git/commit
ert.el: Use `handler-bind` to record backtraces
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 Dec 2023 04:57:45 +0000 (23:57 -0500)
committerEshel Yaron <me@eshelyaron.com>
Fri, 5 Jan 2024 08:18:44 +0000 (09:18 +0100)
commit26b2a707fa4f976d1106c14a025f010b66ac0548
treea68eb00a85b0021911c3ca0ddc2e835e2b650f14
parent8d39657903ed4401abb19cddb4121012796f7fa8
ert.el: Use `handler-bind` to record backtraces

* lisp/emacs-lisp/ert.el (ert--should-signal-hook): Delete function.
(ert--expand-should-1): Don't bind `signal-hook-function`.
(ert--test-execution-info): Remove `next-debugger` slot.
(ert--run-test-debugger): Adjust to new calling convention.
Pass the `:backtrace-base` info to the debugger.
(ert--run-test-internal): Use `handler-bind` rather than let-binding
`debugger` and `debug-on-error`.

* lisp/emacs-lisp/ert-x.el (ert-remote-temporary-file-directory): Don't
use `defconst` if it's not meant to stay constant (e.g. we let-bind it
in tramp-tests.el).

(cherry picked from commit fe0f15dbc962b37d98507a494fd7720bad584a7a)
lisp/emacs-lisp/ert-x.el
lisp/emacs-lisp/ert.el