1 Return-Path: <sojkam1@fel.cvut.cz>
\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 9A0C440D171
\r
6 for <notmuch@notmuchmail.org>; Mon, 1 Nov 2010 09:16:37 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9] autolearn=ham
\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 u+RjlEmVV4Yv for <notmuch@notmuchmail.org>;
\r
16 Mon, 1 Nov 2010 09:16:25 -0700 (PDT)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 96D014196F0
\r
19 for <notmuch@notmuchmail.org>; Mon, 1 Nov 2010 09:16:25 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id 7E1C419F3326;
\r
22 Mon, 1 Nov 2010 17:16:24 +0100 (CET)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
27 with ESMTP id xbKDABMvbnpS; Mon, 1 Nov 2010 17:16:23 +0100 (CET)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id F1CC719F32EE;
\r
30 Mon, 1 Nov 2010 17:16:22 +0100 (CET)
\r
31 Received: from steelpick.2x.cz (pc-dolezilkova.felk.cvut.cz [147.32.86.26])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id E789B15C027;
\r
34 Mon, 1 Nov 2010 17:16:22 +0100 (CET)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>)
\r
37 id 1PCx3V-000414-OA; Mon, 01 Nov 2010 17:16:21 +0100
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: notmuch@notmuchmail.org
\r
41 [PATCH 1/2] test: Search for non-existent message should return nothing
\r
42 Date: Mon, 1 Nov 2010 17:15:39 +0100
\r
43 Message-Id: <1288628140-15410-1-git-send-email-sojkam1@fel.cvut.cz>
\r
44 X-Mailer: git-send-email 1.7.2.3
\r
46 Content-Type: text/plain; charset=UTF-8
\r
47 Content-Transfer-Encoding: 8bit
\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: Mon, 01 Nov 2010 16:16:37 -0000
\r
62 My scripts expect that empty search result is actually empty. Since
\r
63 commit 6dcb7592, even empty search prints a newline character and this
\r
66 This patch adds a test for this bug. In the test I cannot use
\r
67 test_expect_equal function as $() operator suppresses the final
\r
68 newline and this kind of difference is not detected.
\r
70 test/search | 5 +++++
\r
71 1 files changed, 5 insertions(+), 0 deletions(-)
\r
73 test/search | 5 +++++
\r
74 1 files changed, 5 insertions(+), 0 deletions(-)
\r
76 diff --git a/test/search b/test/search
\r
77 index 9132555..5939c6a 100755
\r
80 @@ -96,4 +96,9 @@ add_message '[subject]="utf8-message-body-subject"' '[date]="Sat, 01 Jan 2000 12
\r
81 output=$(notmuch search "bödý" | notmuch_search_sanitize)
\r
82 test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; utf8-message-body-subject (inbox unread)"
\r
84 +test_expect_success "Search for non-existent message prints nothing" '
\r
85 +echo -n > expected &&
\r
86 +notmuch search "no-message-matches-this" > actual &&
\r
87 +test_cmp expected actual'
\r