]> git.eshelyaron.com Git - emacs.git/commitdiff
Make bytecomp-tests re-runnable
authorMattias Engdegård <mattiase@acm.org>
Wed, 19 Aug 2020 11:39:18 +0000 (13:39 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 19 Aug 2020 11:56:32 +0000 (13:56 +0200)
* 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.

test/lisp/emacs-lisp/bytecomp-tests.el

index 894914300aef008aa47b0af3c9eafd0121774323..27acdffa532a80f1e4cb1a2fec9c5371fbc04f9e 100644 (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 ()