From 45944e0183af5b6a2e31248a815fb061f9757eed Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Fri, 19 May 2017 13:26:29 +0200 Subject: [PATCH] Fix module tests on some systems If dladdr(3) isn't available or didn't work, the printed representation of a module function will not include the file name, but only the address. Make the tests pass in that case. * test/src/emacs-module-tests.el (module-function-object): Fix match for module function printed representation --- test/src/emacs-module-tests.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el index eb7c82b2f60..0f4bfae00a2 100644 --- a/test/src/emacs-module-tests.el +++ b/test/src/emacs-module-tests.el @@ -78,13 +78,11 @@ changes." (let ((obj (nth 2 body))) (should (equal (type-of obj) 'module-function)) (should (string-match-p - (rx (or "#") + (rx "#") (prin1-to-string obj))))))) ;; -- 2.39.2