From: David Bremner Date: Fri, 29 Jan 2016 11:53:11 +0000 (+2000) Subject: [PATCH 1/3] test: replace single giant term with large phrase X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7153e7bffa8d3ce458c1d893a87583d95fd7674e;p=notmuch-archives.git [PATCH 1/3] test: replace single giant term with large phrase --- diff --git a/d1/4b4e182fd4b1f3c491ba69cfe8205b22db5674 b/d1/4b4e182fd4b1f3c491ba69cfe8205b22db5674 new file mode 100644 index 000000000..f62a496e3 --- /dev/null +++ b/d1/4b4e182fd4b1f3c491ba69cfe8205b22db5674 @@ -0,0 +1,70 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 2D65D6DE1995 + for ; Fri, 29 Jan 2016 03:53:36 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.309 +X-Spam-Level: +X-Spam-Status: No, score=-0.309 tagged_above=-999 required=5 tests=[AWL=0.242, + RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 17fkNJxANxvi for ; + Fri, 29 Jan 2016 03:53:34 -0800 (PST) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 634116DE014A + for ; Fri, 29 Jan 2016 03:53:34 -0800 (PST) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1aP7bi-0001ve-3C; Fri, 29 Jan 2016 06:52:54 -0500 +Received: (nullmailer pid 5656 invoked by uid 1000); + Fri, 29 Jan 2016 11:53:30 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH 1/3] test: replace single giant term with large phrase +Date: Fri, 29 Jan 2016 07:53:11 -0400 +Message-Id: <1454068393-5406-2-git-send-email-david@tethera.net> +X-Mailer: git-send-email 2.6.4 +In-Reply-To: <1454068393-5406-1-git-send-email-david@tethera.net> +References: <1454068393-5406-1-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 29 Jan 2016 11:53:36 -0000 + +We only need a long string, not a single long term to trigger batch +mode. The giant term triggers a bug/incompatibility in Xapian 1.3.4 +that throws an exception because it is longer than the Xapian term size +limit. +--- + test/T310-emacs.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh +index 61bc369..42e3140 100755 +--- a/test/T310-emacs.sh ++++ b/test/T310-emacs.sh +@@ -130,7 +130,7 @@ test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexande + test_begin_subtest "Add tag (large query)" + # We use a long query to force us into batch mode and use a funny tag + # that requires escaping for batch tagging. +-test_emacs "(notmuch-tag (concat \"$os_x_darwin_thread\" \" or \" (make-string notmuch-tag-argument-limit ?x)) (list \"+tag-from-%-large-query\"))" ++test_emacs "(notmuch-tag (concat \"$os_x_darwin_thread\" \" or \" (mapconcat #'identity (make-list notmuch-tag-argument-limit \"x\") \"-\")) (list \"+tag-from-%-large-query\"))" + output=$(notmuch search $os_x_darwin_thread | notmuch_search_sanitize) + test_expect_equal "$output" "thread:XXX 2009-11-18 [4/4] Jjgod Jiang, Alexander Botero-Lowry; [notmuch] Mac OS X/Darwin compatibility issues (inbox tag-from-%-large-query unread)" + notmuch tag -tag-from-%-large-query $os_x_darwin_thread +-- +2.6.4 +