1 Return-Path: <dmitry.kurochkin@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 5B01D429E36
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 09:37:12 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id KplFYyHNKQLb for <notmuch@notmuchmail.org>;
\r
17 Wed, 25 Jan 2012 09:37:12 -0800 (PST)
\r
18 Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com
\r
19 [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id B7A31431FBC
\r
22 for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 09:37:11 -0800 (PST)
\r
23 Received: by bkbzt19 with SMTP id zt19so3690656bkb.26
\r
24 for <notmuch@notmuchmail.org>; Wed, 25 Jan 2012 09:37:10 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=from:to:subject:in-reply-to:references:user-agent:date:message-id
\r
27 :mime-version:content-type;
\r
28 bh=UBpjjsSUi0ZEFdwGF3OAio6XFNX68n0dTVI6K/9/35M=;
\r
29 b=Mx+/re/SauGoTtr8neE7KU8wDBVjEqmWWz4XHRRR5MRxTLia37u5UCguorUkymTTYe
\r
30 PEb8G+k3NJja6zr6cyoel82TALW6hwXbeDUW0ydwHvSKSYT9RdFXhkG1SCWCGtDOKq2g
\r
31 lDaBc4CJUynbKOln7vzjQFlVx14C/y8fTFgfo=
\r
32 Received: by 10.204.152.26 with SMTP id e26mr7242393bkw.87.1327513030428;
\r
33 Wed, 25 Jan 2012 09:37:10 -0800 (PST)
\r
34 Received: from localhost ([91.144.186.21])
\r
35 by mx.google.com with ESMTPS id d2sm2481008bky.11.2012.01.25.09.37.09
\r
36 (version=TLSv1/SSLv3 cipher=OTHER);
\r
37 Wed, 25 Jan 2012 09:37:09 -0800 (PST)
\r
38 From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
\r
39 To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org
\r
40 Subject: Re: [PATCH 2/4 v2] test: `notmuch-test-run' should protect against
\r
42 In-Reply-To: <1327506328-22126-3-git-send-email-dme@dme.org>
\r
43 References: <1327503908-17226-1-git-send-email-dme@dme.org>
\r
44 <1327506328-22126-1-git-send-email-dme@dme.org>
\r
45 <1327506328-22126-3-git-send-email-dme@dme.org>
\r
46 User-Agent: Notmuch/0.11+116~ge6e10b8 (http://notmuchmail.org) Emacs/23.3.1
\r
47 (x86_64-pc-linux-gnu)
\r
48 Date: Wed, 25 Jan 2012 21:36:04 +0400
\r
49 Message-ID: <87obtrhegr.fsf@gmail.com>
\r
51 Content-Type: text/plain; charset=us-ascii
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Wed, 25 Jan 2012 17:37:12 -0000
\r
66 On Wed, 25 Jan 2012 15:45:26 +0000, David Edmondson <dme@dme.org> wrote:
\r
67 > The body of the test may cause the current buffer to change. Ensure
\r
68 > that the output goes to the correct buffer by switching back before
\r
77 > test/test-lib.el | 4 +++-
\r
78 > 1 files changed, 3 insertions(+), 1 deletions(-)
\r
80 > diff --git a/test/test-lib.el b/test/test-lib.el
\r
81 > index 36e793a..0efb02a 100644
\r
82 > --- a/test/test-lib.el
\r
83 > +++ b/test/test-lib.el
\r
84 > @@ -89,7 +89,9 @@ nothing."
\r
85 > (defmacro notmuch-test-run (&rest body)
\r
86 > "Evaluate a BODY of test expressions and output the result."
\r
87 > `(with-temp-buffer
\r
88 > - (let ((result (progn ,@body)))
\r
89 > + (let ((buffer (current-buffer))
\r
90 > + (result (progn ,@body)))
\r
91 > + (switch-to-buffer buffer)
\r
92 > (insert (if (stringp result)
\r
94 > (prin1-to-string result)))
\r
98 > _______________________________________________
\r
99 > notmuch mailing list
\r
100 > notmuch@notmuchmail.org
\r
101 > http://notmuchmail.org/mailman/listinfo/notmuch
\r