From: Stefan Kangas Date: Mon, 6 Dec 2021 20:48:40 +0000 (+0100) Subject: Assume unfilled byte-compiler warnings in tests X-Git-Tag: emacs-29.0.90~3611^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=79335aa1857f85fd0ce7557200361bcba7af8466;p=emacs.git Assume unfilled byte-compiler warnings in tests * test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp--define-warning-file-test): Remove workaround for filled byte-compilation warnings. See Bug#52281. --- diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index b82afd353cf..468b9b32f74 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -851,8 +851,7 @@ byte-compiled. Run with dynamic binding." (byte-compile-file ,(ert-resource-file file)) (ert-info ((buffer-string) :prefix "buffer: ") (,(if reverse 'should-not 'should) - (re-search-forward ,(string-replace " " "[ \n]+" re-warning) - nil t)))))) + (re-search-forward ,re-warning nil t)))))) (bytecomp--define-warning-file-test "error-lexical-var-with-add-hook.el" "add-hook.*lexical var")