summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/helper.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-12-07 21:41:40 +0100
committerPhilipp Stephani <phst@google.com>2020-12-07 21:41:40 +0100
commit0155bd0fdb166c97a2ce76cc5bc64fd195a676d3 (patch)
tree0746cc2410658fc03931dfeb942cd8b477965dd4 /lisp/emacs-lisp/helper.el
parent0c330bed24ef045732a1bfe61d20ed8328dd0b28 (diff)
downloademacs-0155bd0fdb166c97a2ce76cc5bc64fd195a676d3.tar.gz
emacs-0155bd0fdb166c97a2ce76cc5bc64fd195a676d3.tar.bz2
emacs-0155bd0fdb166c97a2ce76cc5bc64fd195a676d3.zip
Fix bug in how ERT invokes its debugger.
The debugger needs to receive a list of the error symbol and data; cf. the documentation of the `debugger' variable. This bug manifested itself in ERT forms such as (should (integerp (ert-fail "Boo"))), which resulted in an incorrect condition object. Note that forms such as (should (ert-fail "Boo")) weren't affected because they wouldn't use the `ert--should-signal-hook'. * test/emacs-lisp/ert.el (ert--should-signal-hook): Call debugger with the right arguments. * test/lisp/emacs-lisp/ert-tests.el (ert-test-fail-inside-should): Add unit test.
Diffstat (limited to 'lisp/emacs-lisp/helper.el')
0 files changed, 0 insertions, 0 deletions