X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.el;h=6271da22de4b97c2dbca1d37957a3b437af4833f;hp=5b32e0abe4d524f272922f119fce3bcea6d57fec;hb=2f50524e27db2ca58f6543a2c73a5719d8d7f491;hpb=c70c7f86b83601231bac94db8a6596a1d729ae24;ds=sidebyside diff --git a/test/test-lib.el b/test/test-lib.el index 5b32e0ab..6271da22 100644 --- a/test/test-lib.el +++ b/test/test-lib.el @@ -92,7 +92,9 @@ nothing." (defmacro notmuch-test-run (&rest body) "Evaluate a BODY of test expressions and output the result." `(with-temp-buffer - (let ((result (progn ,@body))) + (let ((buffer (current-buffer)) + (result (progn ,@body))) + (switch-to-buffer buffer) (insert (if (stringp result) result (prin1-to-string result)))