]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable filling of warnings in a bytecomp test
authorGlenn Morris <rgm@gnu.org>
Mon, 17 Jun 2019 00:35:36 +0000 (17:35 -0700)
committerGlenn Morris <rgm@gnu.org>
Mon, 17 Jun 2019 00:37:21 +0000 (17:37 -0700)
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
Disable filling rather than working around it.

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

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