]> git.eshelyaron.com Git - emacs.git/commit
Stop Testcover from producing spurious 1value errors
authorGemini Lasswell <gazally@runbox.com>
Tue, 26 Sep 2017 15:14:23 +0000 (08:14 -0700)
committerGemini Lasswell <gazally@runbox.com>
Sun, 8 Oct 2017 23:13:39 +0000 (16:13 -0700)
commit3c2e8eff8cc9a4a535f473b3e150cb056d8f891d
tree730be0a589aa785ebcbb48886d7d2c62afa77843
parentd79cf638f278e50c22feb53d6ba556f5ce9d7853
Stop Testcover from producing spurious 1value errors

Fix bug#25351 by copying results of form evaluations for later
comparison.
* lisp/emacs-lisp/testcover.el (testcover-after): Copy the result
of a form's first evaluation and compare subsequent evaluations to
the copy. Improve the error message used when a form's value
changes.
(testcover--copy-object, testcover--copy-object1): New functions.
* test/lisp/emacs-lisp/testcover-resources/testcases.el
(by-value-vs-by-reference-bug-25351): Remove expected failure tag.
(circular-lists-bug-24402): Add another circular list case.
lisp/emacs-lisp/testcover.el
test/lisp/emacs-lisp/testcover-resources/testcases.el