]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix `comp-tests-free-fun'
authorAndrea Corallo <akrl@sdf.org>
Sat, 22 Feb 2020 10:31:00 +0000 (10:31 +0000)
committerAndrea Corallo <akrl@sdf.org>
Sat, 22 Feb 2020 10:45:33 +0000 (10:45 +0000)
Address the case were comp-tests.el is byte-compiled.

test/src/comp-tests.el

index 00a402287408020d0b4fe653b88678d167822577..e4b7a066cc0bb350abed66311313d698aa48cbcf 100644 (file)
@@ -325,10 +325,11 @@ Check that the resulting binaries do not differ."
 
 (ert-deftest comp-tests-free-fun ()
   "Check we are able to compile a single function."
-  (defun comp-tests-free-fun-f ()
-    "Some doc."
-    (interactive)
-    3)
+  (eval '(defun comp-tests-free-fun-f ()
+           "Some doc."
+           (interactive)
+           3)
+        t)
   (load (native-compile #'comp-tests-free-fun-f))
 
   (should (subr-native-elisp-p (symbol-function #'comp-tests-free-fun-f)))