]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/src/comp-tests.el: Fix it for non native compiled build (bug#48031).
authorAndrea Corallo <akrl@sdf.org>
Mon, 26 Apr 2021 14:58:36 +0000 (16:58 +0200)
committerAndrea Corallo <akrl@sdf.org>
Mon, 26 Apr 2021 14:59:17 +0000 (16:59 +0200)
test/src/comp-tests.el

index a1e91ec5141a814f40e84a8aed4261fe019365f6..a679cf85e36cb95e8f4dab59684a0047c3e9e841 100644 (file)
@@ -27,7 +27,6 @@
 
 (require 'ert)
 (require 'cl-lib)
-(require 'comp)
 
 (defconst comp-test-directory (file-name-directory (or load-file-name
                                                        buffer-file-name)))
@@ -38,6 +37,7 @@
   (concat comp-test-directory "comp-test-funcs-dyn.el"))
 
 (when (featurep 'nativecomp)
+  (require 'comp)
   (message "Compiling tests...")
   (load (native-compile comp-test-src))
   (load (native-compile comp-test-dyn-src)))