emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master a8fc4f7 1/2: Make bytecomp-tests re-runnable


From: Mattias Engdegård
Subject: master a8fc4f7 1/2: Make bytecomp-tests re-runnable
Date: Wed, 19 Aug 2020 08:04:22 -0400 (EDT)

branch: master
commit a8fc4f7dcae84757b61a2189faad7659e875e42f
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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.
---
 test/lisp/emacs-lisp/bytecomp-tests.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el 
b/test/lisp/emacs-lisp/bytecomp-tests.el
index 8949143..27acdff 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -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 ()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]