[PATCH] test/thread-order: more robust loop exit in case of broken input
[notmuch-archives.git] / b3 / a8af36bd7cb82246320334ec0ac464f2703faf
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 6291D421189\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:44:23 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \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 l5eOAMFMZNyQ for <notmuch@notmuchmail.org>;\r
17         Tue, 17 Jan 2012 06:44:22 -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 9DE48421181\r
22         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:44:22 -0800 (PST)\r
23 Received: by bkty12 with SMTP id y12so604689bkt.26\r
24         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:44:21 -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=wjFH6EeHYOaNAhn875vEz+fTzoRReA/25c8lYfTVns0=;\r
29         b=plx0/JwoiNPYlzipDChd71Ev1QiP4vsoRJUMrPBpVms9tBZUHccQLz2N4EaPOAPqqe\r
30         AVouHPIHV07yMlN1xrlVbCrFxwLtoGZzgQEIeJo1ASQ9uia5D7lLtZ2ZBEIdy/zxNyl9\r
31         /86CjcvvoNVrfvaUDkcwjgjJomArq2re4bNvI=\r
32 Received: by 10.204.225.71 with SMTP id ir7mr6951290bkb.124.1326811461355;\r
33         Tue, 17 Jan 2012 06:44:21 -0800 (PST)\r
34 Received: from localhost ([91.144.186.21])\r
35         by mx.google.com with ESMTPS id ek9sm16880354bkb.10.2012.01.17.06.44.18\r
36         (version=TLSv1/SSLv3 cipher=OTHER);\r
37         Tue, 17 Jan 2012 06:44:19 -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/3] test: Add `test_emacs_expect_t'.\r
41 In-Reply-To: <cunobu2pfc4.fsf@hotblack-desiato.hh.sledj.net>\r
42 References: <87pqei327k.fsf@gmail.com>\r
43         <1326809224-22673-1-git-send-email-dme@dme.org>\r
44         <1326809224-22673-2-git-send-email-dme@dme.org>\r
45         <877h0qxv4u.fsf@gmail.com>\r
46         <cunobu2pfc4.fsf@hotblack-desiato.hh.sledj.net>\r
47 User-Agent: Notmuch/0.11+73~g8a5402e (http://notmuchmail.org) Emacs/23.3.1\r
48         (x86_64-pc-linux-gnu)\r
49 Date: Tue, 17 Jan 2012 18:43:22 +0400\r
50 Message-ID: <8739bexud1.fsf@gmail.com>\r
51 MIME-Version: 1.0\r
52 Content-Type: text/plain; charset=us-ascii\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Tue, 17 Jan 2012 14:44:23 -0000\r
66 \r
67 On Tue, 17 Jan 2012 14:35:07 +0000, David Edmondson <dme@dme.org> wrote:\r
68 > On Tue, 17 Jan 2012 18:26:41 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
69 > > Sorry, I still do not understand why we can not implement\r
70 > > test_emacs_expect_t() like:\r
71 > > \r
72 > >   result=${test_emacs $@}\r
73 > >   test_expect_equal $result t\r
74 > > \r
75 > > Can you please explain?\r
76\r
77 > In the failure case test_expect_equal does:\r
78\r
79 >   test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testname.output)"\r
80\r
81 > that diff output is not useful here, because the test harness doesn't\r
82 > have any expected output other than `t' with which to diff the actual\r
83 > output.\r
84\r
85 > The emacs-address-cleaning test shows how we will provide expected\r
86 > vs. actual output directly from within emacs, making it easier for the\r
87 > developer to figure out what went wrong.\r
88 \r
89 Thanks for the explanation.\r
90 \r
91 Regards,\r
92   Dmitry\r