[RFC PATCH v2 04/12] test/emacs: write *Notmuch errors* buffer from test macro

Subject: [RFC PATCH v2 04/12] test/emacs: write *Notmuch errors* buffer from test macro

Date: Thu, 3 Feb 2022 10:32:46 -0400

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


---
 test/test-lib.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/test-lib.el b/test/test-lib.el
index 6831b46f..adabda4a 100644
--- a/test/test-lib.el
+++ b/test/test-lib.el
@@ -184,7 +184,9 @@ running, quit if it terminated."
        (progn ,@body
 	  (message "COMPLETE"))
        (t (message "%s" err)))
-     (with-current-buffer "*Messages*" (test-output "MESSAGES"))))
+     (with-current-buffer "*Messages*" (test-output "MESSAGES"))
+     (with-current-buffer (get-buffer-create "*Notmuch errors*")
+       (test-output "ERRORS"))))
 
 ;; For historical reasons, we hide deleted tags by default in the test
 ;; suite
-- 
2.34.1

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: