1 Return-Path: <dme@dme.org>
\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 C266A431FAF
\r
6 for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 01:59:25 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id DGJYwrD8ydrB for <notmuch@notmuchmail.org>;
\r
16 Thu, 19 Jan 2012 01:59:25 -0800 (PST)
\r
17 Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com
\r
18 [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 D9C6B431FAE for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 01:59:24 -0800
\r
22 Received: by wgbdt12 with SMTP id dt12so703898wgb.2
\r
23 for <notmuch@notmuchmail.org>; Thu, 19 Jan 2012 01:59:23 -0800 (PST)
\r
24 Received: by 10.180.95.199 with SMTP id dm7mr42883899wib.9.1326967163814;
\r
25 Thu, 19 Jan 2012 01:59:23 -0800 (PST)
\r
26 Received: from hotblack-desiato.hh.sledj.net
\r
27 (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])
\r
28 by mx.google.com with ESMTPS id eq5sm16787460wib.2.2012.01.19.01.59.21
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Thu, 19 Jan 2012 01:59:22 -0800 (PST)
\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)
\r
32 id 8761E9FE3F; Thu, 19 Jan 2012 09:59:20 +0000 (GMT)
\r
33 To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
\r
34 Subject: Re: [PATCH 2/3] test: Add `test_emacs_expect_t'.
\r
35 In-Reply-To: <yf6zkdlawlc.fsf@taco2.nixu.fi>
\r
36 References: <87pqei327k.fsf@gmail.com>
\r
37 <1326809224-22673-1-git-send-email-dme@dme.org>
\r
38 <1326809224-22673-2-git-send-email-dme@dme.org>
\r
39 <yf6zkdlawlc.fsf@taco2.nixu.fi>
\r
40 User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1
\r
41 (x86_64-pc-linux-gnu)
\r
42 From: David Edmondson <dme@dme.org>
\r
43 Date: Thu, 19 Jan 2012 09:59:16 +0000
\r
44 Message-ID: <cunzkdk57yj.fsf@hotblack-desiato.hh.sledj.net>
\r
46 Content-Type: multipart/signed; boundary="=-=-=";
\r
47 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Thu, 19 Jan 2012 09:59:25 -0000
\r
63 Content-Type: text/plain
\r
64 Content-Transfer-Encoding: quoted-printable
\r
66 On Wed, 18 Jan 2012 16:55:59 +0200, Tomi Ollila <tomi.ollila@iki.fi> wrote:
\r
67 > > + # Report success/failure.
\r
68 > > + if ! test_skip "$test_subtest_name"
\r
70 > > + if [ "$result" =3D=3D t ]
\r
72 > if [ "$result" =3D t ]
\r
74 > to be compatible with POSIX and consistent with rest code.
\r
76 I'm happy to change this.
\r
78 > > + test_failure_ "$test_subtest_name" "$(eval printf ${result})"
\r
80 > This added 'eval' made me investigate further... running=20
\r
82 > emacsclient --eval '(print (concat "a" "b" "\t" "c" "\n" "z"))'
\r
84 > outputs "ab c\nz" (tab between 'ab' and 'c', quotes (") around
\r
85 > the whole output and newlines as "\n" (even '\r' is converted)).
\r
87 > If emacs tests run via test_emacs_expect_t wrote their output=20
\r
88 > to ${output} directly above code could be much cleaner in many
\r
89 > places. Environment variable could be used for the file name.
\r
91 I'm reluctant to change this just to avoid calling eval.
\r
94 Content-Type: application/pgp-signature
\r
96 -----BEGIN PGP SIGNATURE-----
\r
97 Version: GnuPG v1.4.11 (GNU/Linux)
\r
99 iEYEARECAAYFAk8X6XQACgkQaezQq/BJZRbEtwCfZ/d6vTlUusa5YwUx0VOrWU7w
\r
100 nJoAnjxBjfNQho4/Uvb6MAmokuzU+eM6
\r
102 -----END PGP SIGNATURE-----
\r