Disable filling of warnings in a bytecomp test
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): Disable filling rather than working around it.
This commit is contained in:
parent
a95d614c96
commit
78a609d454
1 changed files with 2 additions and 1 deletions
|
@ -691,13 +691,14 @@ literals (Bug#20852)."
|
|||
(byte-compile-log-buffer (generate-new-buffer " *Compile-Log*")))
|
||||
;; Check that we get a warning without suppression.
|
||||
(with-current-buffer byte-compile-log-buffer
|
||||
(setq-local fill-column 9999)
|
||||
(setq-local warning-fill-column fill-column)
|
||||
(let ((inhibit-read-only t))
|
||||
(erase-buffer)))
|
||||
(test-byte-comp-compile-and-load t form)
|
||||
(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.
|
||||
|
|
Loading…
Add table
Reference in a new issue