1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-25 01:10:47 -08:00
emacs/test/lisp
Noam Postavsky ead545824e Improve ert backtrace recording
Change ert to use the new `backtrace-frames' function instead of
collecting frames one by one with `backtrace-frame'.  Additionally,
collect frames starting from `signal' instead the somewhat arbitrary
"6 from the bottom".  Skipping 6 frames would skip the expression that
actually caused the signal that triggered the debugger.  Possibly 6
was chosen because in the case of a failed test, the triggering frame
is an `ert-fail' call, which is not so interesting.  But in case of a
test throwing an error, this drops the `error' call which is too much.

* lisp/emacs-lisp/debug.el (debugger-make-xrefs): Remove.
* lisp/emacs-lisp/ert.el (ert--make-xrefs-region): Bring in relevant
code from `debugger-make-xrefs'.
(ert--print-backtrace): Add DO-XREFS parameter, delegate to
`debugger-insert-backtrace'.
(ert--run-test-debugger): Record the backtrace frames starting from
the instigating `signal' call.
(ert-run-tests-batch): Pass nil for `ert--print-backtrace's new
DO-XREFS parameter.
(ert-results-pop-to-backtrace-for-test-at-point): Pass t as DO-XREFS
to `ert--print-backtrace' and remove call to `debugger-make-xrefs'.
* test/lisp/emacs-lisp/ert-tests.el (ert-test-record-backtrace): Check
the backtrace list instead of comparing its string representation.
Expect `signal' to be the first frame.
2017-06-29 19:37:25 -04:00
..
calc test-calc-23889: Skip test on 32-bit platforms 2017-05-26 10:59:19 +09:00
calendar Fix with-todo-test 2017-06-02 13:14:44 -04:00
emacs-lisp Improve ert backtrace recording 2017-06-29 19:37:25 -04:00
emulation Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
erc Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
eshell Give test files a -tests.el suffix 2017-06-09 15:56:49 +02:00
gnus Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
international Allow local variables section to begin with a square bracket 2017-06-17 16:10:51 +02:00
mail Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
net Improve timer handling when Tramp accepts output 2017-06-29 18:22:38 +02:00
progmodes Give test files a -tests.el suffix 2017-06-09 15:56:49 +02:00
textmodes Complete CSS property values less eagerly (Bug#27392) 2017-06-17 10:38:29 +02:00
url Simplify url-encode-url and add a test 2017-05-10 03:34:58 +03:00
vc Give test files a -tests.el suffix 2017-06-09 15:56:49 +02:00
abbrev-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
auth-source-pass-tests.el * test/lisp/auth-source-pass-tests.el: Fix loading of cl-lib. 2017-04-27 21:19:47 -07:00
auth-source-tests.el auth-source: factor out parsers and add tests 2017-04-27 17:37:58 -04:00
autorevert-tests.el Fix autorevert-tests on MS-Windows 2017-02-04 13:49:55 +02:00
buff-menu-tests.el Ensure the created temp file in a test is new 2017-05-06 12:30:48 +09:00
char-fold-tests.el Support casing characters which map into multiple code points (bug#24603) 2017-04-06 20:54:58 +02:00
comint-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dabbrev-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
descr-text-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dired-tests.el Quieten compilation of some test files 2017-05-31 21:17:28 -04:00
dired-x-tests.el dired-mark-suffix: New command 2017-03-31 17:27:08 +09:00
dom-tests.el Avoid unnecessary loading of subr-x at run-time 2017-04-18 19:07:28 -04:00
electric-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
epg-tests.el Stop some epg tests failing on rhel7 with gpg 2.0.22 (bug#23619) 2017-05-15 21:01:30 -04:00
faces-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
ffap-tests.el ffap: Don't switch window unless needed 2017-04-22 18:33:38 +02:00
filenotify-tests.el Skip a test from filenotify-tests.el on Cygwin 2017-05-08 15:11:23 -04:00
files-tests.el Fix quoted files for 'verify-visited-file-modtime' 2017-05-06 21:26:04 +02:00
files-x-tests.el Rework connection local variables 2017-02-19 17:14:35 +01:00
help-fns-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
hi-lock-tests.el Drop face from hi-lock--unused-faces only when used 2017-04-27 12:01:19 +09:00
htmlfontify-tests.el Don't require a shell when loading htmlfontify 2017-01-27 18:37:58 +01:00
ibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
ido-tests.el Add missing remappings for Ido mode 2017-04-23 18:42:42 +02:00
imenu-tests.el Fix imenu--sort-by-position for non-pairs parameters (bug#26457) 2017-04-13 11:44:17 +02:00
info-xref-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
isearch-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
jit-lock-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
json-tests.el Fix definition of whitespace in JSON 2017-05-21 23:03:01 +02:00
kmacro-tests.el * test/lisp/kmacro-tests.el: Require seq, for seq-concatenate. 2017-04-18 13:02:02 -04:00
man-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
md4-tests.el Turn on lexical-binding in md4.el 2017-01-03 18:34:13 -05:00
minibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
mouse-tests.el Fix macOS mouse movement 2017-05-21 00:09:41 +01:00
obarray-tests.el Add obarray-size and fix tests accordingly. Use obarrayp in cedet. 2017-03-16 12:31:07 -04:00
ps-print-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
replace-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
rot13-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
shell-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
simple-tests.el Revert "Add current-line in simple.el" 2017-06-19 14:43:39 +02:00
sort-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
subr-tests.el * test/lisp/subr-tests.el (subr-tests-bug22027): Add test. 2017-06-05 18:57:50 -04:00
thingatpt-tests.el Correctly detect URLs surrounded by parentheses in comments 2017-06-16 18:06:28 +02:00
whitespace-tests.el Fix turning off whitespace-mode 2017-05-19 15:20:59 +03:00
xml-tests.el xml: Properly handle symbol-qnames for attribute parsing 2017-04-17 17:17:00 +02:00
xt-mouse-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00