emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 af130f9: Fix ert backtrace saving for non-`signal


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-26 af130f9: Fix ert backtrace saving for non-`signal'ed errors (Bug#28333)
Date: Thu, 28 Sep 2017 20:10:50 -0400 (EDT)

branch: emacs-26
commit af130f900fc499f71ea22f10ba055a75ce35ed4e
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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.
---
 lisp/emacs-lisp/ert.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index d427622..83acbac 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -742,9 +742,8 @@ run.  ARGS are the arguments to `debugger'."
               ;; backtrace ready for printing is important for batch
               ;; use.
               ;;
-              ;; Grab the frames starting from `signal', frames below
-              ;; that are all from the debugger.
-              (backtrace (backtrace-frames 'signal))
+              ;; Grab the frames above the debugger.
+              (backtrace (cdr (backtrace-frames debugger)))
               (infos (reverse ert--infos)))
          (setf (ert--test-execution-info-result info)
                (cl-ecase type



reply via email to

[Prev in Thread] Current Thread [Next in Thread]