Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E1919429E21 for ; Fri, 13 May 2011 01:07:24 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 QNh2l9TcCgJA for ; Fri, 13 May 2011 01:07:23 -0700 (PDT) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5177C431FB6 for ; Fri, 13 May 2011 01:07:23 -0700 (PDT) Received: by wwi36 with SMTP id 36so2079721wwi.2 for ; Fri, 13 May 2011 01:07:22 -0700 (PDT) Received: by 10.227.43.9 with SMTP id u9mr1110469wbe.74.1305274041881; Fri, 13 May 2011 01:07:21 -0700 (PDT) Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be [81.242.209.54]) by mx.google.com with ESMTPS id ca12sm1216839wbb.19.2011.05.13.01.07.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 May 2011 01:07:21 -0700 (PDT) From: Pieter Praet To: Notmuch Mail Subject: [PATCH] test: do folder-based search with a single-term path after moving message Date: Fri, 13 May 2011 10:06:57 +0200 Message-Id: <1305274017-19538-1-git-send-email-pieter@praet.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <87fwojhpmx.fsf@servo.factory.finestructure.net> References: <87fwojhpmx.fsf@servo.factory.finestructure.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: Fri, 13 May 2011 08:07:25 -0000 When moving mail to a different folder, there appear to be residual incorrect "folder:" terms. This test exposes an existing bug, so is currently failing. Signed-off-by: Pieter Praet --- test/search-by-folder | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/test/search-by-folder b/test/search-by-folder index 162158c..62767fb 100755 --- a/test/search-by-folder +++ b/test/search-by-folder @@ -35,6 +35,10 @@ notmuch new output=$(notmuch search folder:bad/news | notmuch_search_sanitize) test_expect_equal "$output" "" +test_begin_subtest "After rename, old single-term path returns nothing" +output=$(notmuch search folder:news | notmuch_search_sanitize) +test_expect_equal_failure "$output" "" + test_begin_subtest "After rename, new path returns result" output=$(notmuch search folder:bad/olds | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Bears (inbox unread)" -- 1.7.4.1