From 4c3e78a9f4240bff6cf2bbc1f181dd167b712144 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 12 Jun 2019 19:31:00 -0700 Subject: [PATCH] Allow for line breaks in a bytecomp test * test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): Warnings from the byte compiler may be filled. --- test/lisp/emacs-lisp/bytecomp-tests.el | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 86cf2edec8b..289bd18a961 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el @@ -697,6 +697,7 @@ literals (Bug#20852)." (with-current-buffer byte-compile-log-buffer (unless match (error "%s" (buffer-string))) + (setq match (replace-regexp-in-string " " "[ \n]+" match nil t)) (goto-char (point-min)) (should (string-match match (buffer-string)))) ;; And that it's gone now. -- 2.39.5