Fix failing help-fns-test

* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun):
Fix failing test.
This commit is contained in:
Stefan Kangas 2024-06-23 20:54:22 +02:00
parent 0f01cb0ebd
commit 75ca15f2a3

View file

@ -63,9 +63,8 @@ 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 (featurep 'native-compile)
"a native-compiled Lisp function in .+subr\\.el"
"a byte-compiled Lisp function in .+subr\\.el"))
(let ((regexp (rx "a " (or "byte-compiled" "native-compiled")
" Lisp function in " nonl "subr.el" nonl))
(result (help-fns-tests--describe-function 'last)))
(should (string-match regexp result))))