aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-06-16 17:35:36 -0700
committerGlenn Morris2019-06-16 17:37:21 -0700
commit78a609d454ecf2d8eaf12817fd04ce9869b49a5b (patch)
tree2c5c332910f12bdf3a59e00683b8713448d38e75
parenta95d614c96fbe224babc2a17d3f175ab26da003e (diff)
downloademacs-78a609d454ecf2d8eaf12817fd04ce9869b49a5b.tar.gz
emacs-78a609d454ecf2d8eaf12817fd04ce9869b49a5b.zip
Disable filling of warnings in a bytecomp test
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): Disable filling rather than working around it.
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 289bd18a961..0c151e39169 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -691,13 +691,14 @@ literals (Bug#20852)."
691 (byte-compile-log-buffer (generate-new-buffer " *Compile-Log*"))) 691 (byte-compile-log-buffer (generate-new-buffer " *Compile-Log*")))
692 ;; Check that we get a warning without suppression. 692 ;; Check that we get a warning without suppression.
693 (with-current-buffer byte-compile-log-buffer 693 (with-current-buffer byte-compile-log-buffer
694 (setq-local fill-column 9999)
695 (setq-local warning-fill-column fill-column)
694 (let ((inhibit-read-only t)) 696 (let ((inhibit-read-only t))
695 (erase-buffer))) 697 (erase-buffer)))
696 (test-byte-comp-compile-and-load t form) 698 (test-byte-comp-compile-and-load t form)
697 (with-current-buffer byte-compile-log-buffer 699 (with-current-buffer byte-compile-log-buffer
698 (unless match 700 (unless match
699 (error "%s" (buffer-string))) 701 (error "%s" (buffer-string)))
700 (setq match (replace-regexp-in-string " " "[ \n]+" match nil t))
701 (goto-char (point-min)) 702 (goto-char (point-min))
702 (should (string-match match (buffer-string)))) 703 (should (string-match match (buffer-string))))
703 ;; And that it's gone now. 704 ;; And that it's gone now.