]> git.eshelyaron.com Git - emacs.git/commit
Fix ert-tests when running compiled
authorNoam Postavsky <npostavs@gmail.com>
Mon, 22 Aug 2016 02:58:37 +0000 (22:58 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Wed, 7 Dec 2016 03:20:23 +0000 (22:20 -0500)
commit58e418d2ceb82501f03d9c3316fd0a46faf7f0eb
tree699bd17367bc6fa8e8f244be5d040195250ff9ad
parent5202cb56add070eb7d9fe8015f2a4edd57a628f9
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).
lisp/emacs-lisp/ert.el
test/lisp/emacs-lisp/ert-tests.el