1 Return-Path: <bremner@tethera.net>
\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 C4CB8431FAF
\r
6 for <notmuch@notmuchmail.org>; Thu, 23 Jan 2014 04:24:26 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\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 WV78JAHUS8ZZ for <notmuch@notmuchmail.org>;
\r
16 Thu, 23 Jan 2014 04:24:21 -0800 (PST)
\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 33787431FBF
\r
21 for <notmuch@notmuchmail.org>; Thu, 23 Jan 2014 04:24:18 -0800 (PST)
\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)
\r
23 (envelope-from <bremner@tethera.net>)
\r
24 id 1W6JKT-0006Wu-Sw; Thu, 23 Jan 2014 08:24:17 -0400
\r
25 Received: (nullmailer pid 17150 invoked by uid 1000); Thu, 23 Jan 2014
\r
27 From: David Bremner <david@tethera.net>
\r
28 To: notmuch@notmuchmail.org
\r
29 Subject: [PATCH 1/3] test: add known broken test exit code of notmuch show
\r
30 Date: Thu, 23 Jan 2014 08:23:59 -0400
\r
31 Message-Id: <1390479841-17045-2-git-send-email-david@tethera.net>
\r
32 X-Mailer: git-send-email 1.8.5.2
\r
33 In-Reply-To: <1390479841-17045-1-git-send-email-david@tethera.net>
\r
34 References: <m2r47zrkkc.fsf@guru.guru-group.fi>
\r
35 <1390479841-17045-1-git-send-email-david@tethera.net>
\r
36 X-BeenThere: notmuch@notmuchmail.org
\r
37 X-Mailman-Version: 2.1.13
\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: Thu, 23 Jan 2014 12:24:27 -0000
\r
50 This test catches a segfault on a syntactically invalid query. It also
\r
51 catches a problem with my initial fix, which still returned 0.
\r
53 test/T520-show.sh | 14 ++++++++++++++
\r
54 1 file changed, 14 insertions(+)
\r
55 create mode 100755 test/T520-show.sh
\r
57 diff --git a/test/T520-show.sh b/test/T520-show.sh
\r
58 new file mode 100755
\r
59 index 0000000..bdd9d71
\r
61 +++ b/test/T520-show.sh
\r
63 +#!/usr/bin/env bash
\r
64 +test_description='"notmuch show"'
\r
70 +test_begin_subtest "exit code for show invalid query"
\r
71 +test_subtest_known_broken
\r
74 +test_expect_equal 1 $exit_code
\r