summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/bytecomp-tests.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2019-06-12 19:31:00 -0700
committerGlenn Morris <rgm@gnu.org>2019-06-12 19:31:00 -0700
commit4c3e78a9f4240bff6cf2bbc1f181dd167b712144 (patch)
tree3bfaf0a857c381e3954e276788fc5568229114f6 /test/lisp/emacs-lisp/bytecomp-tests.el
parent4752de83493df806b8cce0ff430f62fdcda46db2 (diff)
downloademacs-4c3e78a9f4240bff6cf2bbc1f181dd167b712144.tar.gz
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.
Diffstat (limited to 'test/lisp/emacs-lisp/bytecomp-tests.el')
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el1
1 files changed, 1 insertions, 0 deletions
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.