]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow for line breaks in a bytecomp test
authorGlenn Morris <rgm@gnu.org>
Thu, 13 Jun 2019 02:31:00 +0000 (19:31 -0700)
committerGlenn Morris <rgm@gnu.org>
Thu, 13 Jun 2019 02:31:00 +0000 (19:31 -0700)
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
Warnings from the byte compiler may be filled.

test/lisp/emacs-lisp/bytecomp-tests.el

index 86cf2edec8b8615a0c668099ffb7276887a28cc0..289bd18a96193ce9d44d12de4c0d440a820e1e6f 100644 (file)
@@ -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.