master 71a81c9853e 2/2: Fix benchmark failure when no native compilation
Paul Eggert <[email protected]> Wed, 15 Jul 2026 14:39:58 -0400 (EDT)
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit 71a81c9853edbf3d04f8305782a99e9d2c707b24 Author: Paul Eggert <[email protected]> Commit: Paul Eggert <[email protected]> Fix benchmark failure when no native compilation * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests): Run benchmark-run-compiled only if native compilation is available. --- test/lisp/emacs-lisp/benchmark-tests.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/lisp/emacs-lisp/benchmark-tests.el b/test/lisp/emacs-lisp/benchmark-tests.el index f39c5dc54ac..0c494c22a4c 100644 --- a/test/lisp/emacs-lisp/benchmark-tests.el +++ b/test/lisp/emacs-lisp/benchmark-tests.el @@ -32,8 +32,9 @@ (should (consp (benchmark-run 1 (setq m (1+ 0))))) (should (stringp (benchmark nil (1+ 0)))) (should (stringp (benchmark 1 (1+ 0)))) - (should (consp (benchmark-run-compiled (1+ 0)))) - (should (consp (benchmark-run-compiled 1 (1+ 0)))) + (when (featurep 'native-compile) + (should (consp (benchmark-run-compiled (1+ 0)))) + (should (consp (benchmark-run-compiled 1 (1+ 0))))) ;; First test is heavier, must need longer time. (let ((count1 0) (count2 0)