Re: [PATCH v4 09/16] index encrypted parts when asked.
[notmuch-archives.git] / 2e / ef0d1f88f32b5e04cc56644cee653bbda308c4
1 Return-Path: <bremner@tesseract.cs.unb.ca>\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 56202431FC2\r
6         for <notmuch@notmuchmail.org>; Fri,  3 Oct 2014 14:19:53 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 00Sk0PPnA4Ql for <notmuch@notmuchmail.org>;\r
16         Fri,  3 Oct 2014 14:19:48 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 1D167431FC0\r
21         for <notmuch@notmuchmail.org>; Fri,  3 Oct 2014 14:19:41 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <bremner@tesseract.cs.unb.ca>)\r
24         id 1XaAGK-0000LV-Ni; Fri, 03 Oct 2014 18:19:40 -0300\r
25 Received: (nullmailer pid 21181 invoked by uid 1000); Fri, 03 Oct 2014\r
26         21:19:08 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: notmuch@notmuchmail.org\r
29 Subject: [Patch v2.5 4/4] test/insert: check that indexing errors are\r
30         accepted with --keep\r
31 Date: Fri,  3 Oct 2014 23:19:00 +0200\r
32 Message-Id: <1412371140-21051-5-git-send-email-david@tethera.net>\r
33 X-Mailer: git-send-email 2.1.0\r
34 In-Reply-To: <1412371140-21051-1-git-send-email-david@tethera.net>\r
35 References: <1412371140-21051-1-git-send-email-david@tethera.net>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Fri, 03 Oct 2014 21:19:53 -0000\r
49 \r
50 This is overkill for the current code path, but should provide some\r
51 robustness for future changes in error handling.\r
52 ---\r
53  test/T070-insert.sh | 5 +++++\r
54  1 file changed, 5 insertions(+)\r
55 \r
56 diff --git a/test/T070-insert.sh b/test/T070-insert.sh\r
57 index be8060e..80a22c1 100755\r
58 --- a/test/T070-insert.sh\r
59 +++ b/test/T070-insert.sh\r
60 @@ -202,6 +202,11 @@ test_begin_subtest "error exit when add_message returns $code"\r
61  gdb --batch-silent --return-child-result -x index-file-$code.gdb \\r
62      --args notmuch insert  < $gen_msg_filename\r
63  test_expect_equal $? 1\r
64 +\r
65 +test_begin_subtest "success exit with --keep when add_message returns $code"\r
66 +gdb --batch-silent --return-child-result -x index-file-$code.gdb \\r
67 +    --args notmuch insert --keep  < $gen_msg_filename\r
68 +test_expect_equal $? 0\r
69  done\r
70  \r
71  test_done\r
72 -- \r
73 2.1.0\r
74 \r