Make bytecomp-tests re-runnable

* test/lisp/emacs-lisp/bytecomp-tests.el
(test-byte-comp-macro-expand-lexical-override): Remove functions
before testing so that the test can be run twice without failing.
This commit is contained in:
Mattias Engdegård 2020-08-19 13:39:18 +02:00
parent 6a61d5edd0
commit a8fc4f7dca

View file

@ -479,6 +479,8 @@ Subtests signal errors if something goes wrong."
(ert-deftest bytecomp-tests--warnings ()
(with-current-buffer (get-buffer-create "*Compile-Log*")
(let ((inhibit-read-only t)) (erase-buffer)))
(dolist (f '(my-test0 my--test11 my--test12 my--test2))
(fset f nil))
(test-byte-comp-compile-and-load t
'(progn
(defun my-test0 ()