]> git.eshelyaron.com Git - emacs.git/commitdiff
* Better identify native compiler presence in two tests.
authorAndrea Corallo <akrl@sdf.org>
Wed, 5 May 2021 15:00:59 +0000 (17:00 +0200)
committerAndrea Corallo <akrl@sdf.org>
Wed, 5 May 2021 15:01:56 +0000 (17:01 +0200)
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun)
(help-fns-test-lisp-defsubst): Better identify native-comp
presence.

test/lisp/help-fns-tests.el

index 099d627f355e10d4177cb8fcb107a4b6917a68ec..8a226c4a0ba089b143e866e05334960362cec5da 100644 (file)
@@ -62,14 +62,14 @@ Return first line of the output of (describe-function-1 FUNC)."
     (should (string-match regexp result))))
 
 (ert-deftest help-fns-test-lisp-defun ()
-  (let ((regexp (if (boundp 'comp-ctxt)
+  (let ((regexp (if (featurep 'nativecomp)
                     "a native compiled Lisp function in .+subr\\.el"
                   "a compiled Lisp function in .+subr\\.el"))
         (result (help-fns-tests--describe-function 'last)))
     (should (string-match regexp result))))
 
 (ert-deftest help-fns-test-lisp-defsubst ()
-  (let ((regexp (if (boundp 'comp-ctxt)
+  (let ((regexp (if (featurep 'nativecomp)
                     "a native compiled Lisp function in .+subr\\.el"
                   "a compiled Lisp function in .+subr\\.el"))
         (result (help-fns-tests--describe-function 'posn-window)))