summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2024-06-23 20:54:22 +0200
committerStefan Kangas <stefankangas@gmail.com>2024-06-23 20:54:22 +0200
commit75ca15f2a3146b17fde5e2a50ad9102c6108ba7f (patch)
treeff9e7d69b312d96685f44ca496385087e4cb6df8
parent0f01cb0ebd12c361b3f7bd7a44159911f52301bf (diff)
downloademacs-75ca15f2a3146b17fde5e2a50ad9102c6108ba7f.tar.gz
emacs-75ca15f2a3146b17fde5e2a50ad9102c6108ba7f.tar.bz2
emacs-75ca15f2a3146b17fde5e2a50ad9102c6108ba7f.zip
Fix failing help-fns-test
* test/lisp/help-fns-tests.el (help-fns-test-lisp-defun): Fix failing test.
-rw-r--r--test/lisp/help-fns-tests.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/lisp/help-fns-tests.el b/test/lisp/help-fns-tests.el
index c3e8ca49723..fabf1959658 100644
--- a/test/lisp/help-fns-tests.el
+++ b/test/lisp/help-fns-tests.el
@@ -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))))