diff options
| author | Alexander Gramiak | 2017-07-13 14:54:35 -0600 |
|---|---|---|
| committer | Noam Postavsky | 2017-08-07 18:43:54 -0400 |
| commit | 054c198c120c1f01a8ff753892d52710b740acc6 (patch) | |
| tree | d84b8d8b54cad32fc24cbcf5a60a794eb0d8194d /src/coding.h | |
| parent | e6fa08363dc950e48d72d41fd0f65444d2755ce3 (diff) | |
| download | emacs-054c198c120c1f01a8ff753892d52710b740acc6.tar.gz emacs-054c198c120c1f01a8ff753892d52710b740acc6.zip | |
Catch argument and macroexpansion errors in ert
This kludge catches errors caused by evaluating arguments in ert's
should, should-not, and should-error macros; it also catches
macroexpansion errors inside of the above macros (Bug#24402).
* lisp/emacs-lisp/ert.el: (ert--should-signal-hook): New function.
(ert--expand-should-1): Catch macroexpansion errors.
* test/lisp/emacs-lisp/ert-tests.el (ert-test-should-error-argument)
(ert-test-should-error-macroexpansion): Tests for argument and
expansion errors.
Diffstat (limited to 'src/coding.h')
0 files changed, 0 insertions, 0 deletions