From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C4CB8431FAF for ; Thu, 23 Jan 2014 04:24:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WV78JAHUS8ZZ for ; Thu, 23 Jan 2014 04:24:21 -0800 (PST) Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 33787431FBF for ; Thu, 23 Jan 2014 04:24:18 -0800 (PST) Received: from remotemail by yantan.tethera.net with local (Exim 4.80) (envelope-from ) id 1W6JKT-0006Wu-Sw; Thu, 23 Jan 2014 08:24:17 -0400 Received: (nullmailer pid 17150 invoked by uid 1000); Thu, 23 Jan 2014 12:24:06 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 1/3] test: add known broken test exit code of notmuch show Date: Thu, 23 Jan 2014 08:23:59 -0400 Message-Id: <1390479841-17045-2-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390479841-17045-1-git-send-email-david@tethera.net> References: <1390479841-17045-1-git-send-email-david@tethera.net> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 12:24:27 -0000 This test catches a segfault on a syntactically invalid query. It also catches a problem with my initial fix, which still returned 0. --- test/T520-show.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 test/T520-show.sh diff --git a/test/T520-show.sh b/test/T520-show.sh new file mode 100755 index 0000000..bdd9d71 --- /dev/null +++ b/test/T520-show.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +test_description='"notmuch show"' + +. ./test-lib.sh + +add_email_corpus + +test_begin_subtest "exit code for show invalid query" +test_subtest_known_broken +notmuch show foo.. +exit_code=$? +test_expect_equal 1 $exit_code + +test_done -- 1.8.5.2