diff options
| author | Glenn Morris | 2019-06-12 16:48:33 -0700 |
|---|---|---|
| committer | Glenn Morris | 2019-06-12 16:49:06 -0700 |
| commit | e2e63dc3f062ec3dee56f003efb3e093b56692d4 (patch) | |
| tree | 180f98a8cf96396d39a84216580dce25862073dc | |
| parent | d16b73fb4a9d87ec220444d220c6b45879806fc0 (diff) | |
| download | emacs-e2e63dc3f062ec3dee56f003efb3e093b56692d4.tar.gz emacs-e2e63dc3f062ec3dee56f003efb3e093b56692d4.zip | |
Give more information in a bytecomp test failure
* test/lisp/emacs-lisp/bytecomp-tests.el (test-suppression):
More informative failure messages.
| -rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index 6fe7f5b571d..86cf2edec8b 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el | |||
| @@ -698,7 +698,7 @@ literals (Bug#20852)." | |||
| 698 | (unless match | 698 | (unless match |
| 699 | (error "%s" (buffer-string))) | 699 | (error "%s" (buffer-string))) |
| 700 | (goto-char (point-min)) | 700 | (goto-char (point-min)) |
| 701 | (should (re-search-forward match nil t))) | 701 | (should (string-match match (buffer-string)))) |
| 702 | ;; And that it's gone now. | 702 | ;; And that it's gone now. |
| 703 | (with-current-buffer byte-compile-log-buffer | 703 | (with-current-buffer byte-compile-log-buffer |
| 704 | (let ((inhibit-read-only t)) | 704 | (let ((inhibit-read-only t)) |
| @@ -708,7 +708,7 @@ literals (Bug#20852)." | |||
| 708 | ,form)) | 708 | ,form)) |
| 709 | (with-current-buffer byte-compile-log-buffer | 709 | (with-current-buffer byte-compile-log-buffer |
| 710 | (goto-char (point-min)) | 710 | (goto-char (point-min)) |
| 711 | (should-not (re-search-forward match nil t))) | 711 | (should-not (string-match match (buffer-string)))) |
| 712 | ;; Also check that byte compiled forms are identical. | 712 | ;; Also check that byte compiled forms are identical. |
| 713 | (should (equal (byte-compile form) | 713 | (should (equal (byte-compile form) |
| 714 | (byte-compile | 714 | (byte-compile |