diff options
author | Noam Postavsky <npostavs@gmail.com> | 2016-08-21 22:58:37 -0400 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2016-12-06 22:20:23 -0500 |
commit | 58e418d2ceb82501f03d9c3316fd0a46faf7f0eb (patch) | |
tree | 699bd17367bc6fa8e8f244be5d040195250ff9ad /test/lisp/emacs-lisp/map-tests.el | |
parent | 5202cb56add070eb7d9fe8015f2a4edd57a628f9 (diff) | |
download | emacs-58e418d2ceb82501f03d9c3316fd0a46faf7f0eb.tar.gz emacs-58e418d2ceb82501f03d9c3316fd0a46faf7f0eb.tar.bz2 emacs-58e418d2ceb82501f03d9c3316fd0a46faf7f0eb.zip |
Fix ert-tests when running compiled
* test/lisp/emacs-lisp/ert-tests.el (ert-test-deftest): Don't test for
specific macroexpansion, just check result of evaluation.
(ert-test-record-backtrace): Don't hardcode representation of closure in
expected backtrace, this lets the test succeed even when the test code
is compiled.
* lisp/emacs-lisp/ert.el (ert--expand-should-1): Also pass
`byte-compile-macro-environment' to `macroexpand', this allows the
`should' macro to properly handle macroexpansion of macros that were
defined in the same file when it's being compiled (Bug #17851).
Diffstat (limited to 'test/lisp/emacs-lisp/map-tests.el')
0 files changed, 0 insertions, 0 deletions