]> git.eshelyaron.com Git - emacs.git/commit
Signal an error for duplicated ERT tests (bug#51941)
authorMattias Engdegård <mattiase@acm.org>
Thu, 18 Nov 2021 11:18:24 +0000 (12:18 +0100)
committerMattias Engdegård <mattiase@acm.org>
Thu, 18 Nov 2021 11:25:34 +0000 (12:25 +0100)
commit67ffcc5c7f5e1adcc6f662b01c7904f977dd4f51
tree6720fd3b0f59dd44048c2a1fff9cd79f66c17aae
parentf41c6a70e7ce100b13ff0b662a054f6a0cd11cb2
Signal an error for duplicated ERT tests (bug#51941)

Make `ert-deftest` fail with an error (in batch mode only) if an
existing test is redefined, because that is an easy mistake to make
and which leads to a test being discarded silently.

lisp/emacs-lisp/ert.el (ert-set-test, ert-deftest): Add check.
etc/NEWS: Announce.
etc/NEWS
lisp/emacs-lisp/ert.el