Fix ert backtrace saving for non-`signal'ed errors (Bug#28333)
* lisp/emacs-lisp/ert.el (ert--run-test-debugger): Take the frames above the `debugger' frame, rather than assuming there will be a `signal' frame.
This commit is contained in:
parent
7476eeaa23
commit
af130f900f
1 changed files with 2 additions and 3 deletions
|
@ -742,9 +742,8 @@ run. ARGS are the arguments to `debugger'."
|
||||||
;; backtrace ready for printing is important for batch
|
;; backtrace ready for printing is important for batch
|
||||||
;; use.
|
;; use.
|
||||||
;;
|
;;
|
||||||
;; Grab the frames starting from `signal', frames below
|
;; Grab the frames above the debugger.
|
||||||
;; that are all from the debugger.
|
(backtrace (cdr (backtrace-frames debugger)))
|
||||||
(backtrace (backtrace-frames 'signal))
|
|
||||||
(infos (reverse ert--infos)))
|
(infos (reverse ert--infos)))
|
||||||
(setf (ert--test-execution-info-result info)
|
(setf (ert--test-execution-info-result info)
|
||||||
(cl-ecase type
|
(cl-ecase type
|
||||||
|
|
Loading…
Add table
Reference in a new issue