emacs-diffs
[Top][All Lists]
Advanced

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

feature/native-comp 3130690: Fix `comp-tests-free-fun'


From: Andrea Corallo
Subject: feature/native-comp 3130690: Fix `comp-tests-free-fun'
Date: Sat, 22 Feb 2020 05:46:54 -0500 (EST)

branch: feature/native-comp
commit 3130690882d187a5d6b757fd109c60c84009d973
Author: Andrea Corallo <address@hidden>
Commit: Andrea Corallo <address@hidden>

    Fix `comp-tests-free-fun'
    
    Address the case were comp-tests.el is byte-compiled.
---
 test/src/comp-tests.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el
index 00a4022..e4b7a06 100644
--- a/test/src/comp-tests.el
+++ b/test/src/comp-tests.el
@@ -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)))



reply via email to

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