mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
Give more information in a bytecomp test failure
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression): More informative failure messages.
This commit is contained in:
parent
d16b73fb4a
commit
e2e63dc3f0
1 changed files with 2 additions and 2 deletions
|
|
@ -698,7 +698,7 @@ literals (Bug#20852)."
|
|||
(unless match
|
||||
(error "%s" (buffer-string)))
|
||||
(goto-char (point-min))
|
||||
(should (re-search-forward match nil t)))
|
||||
(should (string-match match (buffer-string))))
|
||||
;; And that it's gone now.
|
||||
(with-current-buffer byte-compile-log-buffer
|
||||
(let ((inhibit-read-only t))
|
||||
|
|
@ -708,7 +708,7 @@ literals (Bug#20852)."
|
|||
,form))
|
||||
(with-current-buffer byte-compile-log-buffer
|
||||
(goto-char (point-min))
|
||||
(should-not (re-search-forward match nil t)))
|
||||
(should-not (string-match match (buffer-string))))
|
||||
;; Also check that byte compiled forms are identical.
|
||||
(should (equal (byte-compile form)
|
||||
(byte-compile
|
||||
|
|
|
|||
Loading…
Reference in a new issue